mirror of
https://github.com/Astatin3/unshell-nodes-rs.git
synced 2026-06-08 16:18:08 -06:00
10 lines
241 B
Rust
10 lines
241 B
Rust
pub trait Layer: Serialize + Deserialize<'static> + Sized {
|
|
fn encode(&mut self, data: &[u8]) -> Vec<u8>;
|
|
fn decode(&mut self, data: &[u8]) -> Vec<u8>;
|
|
}
|
|
|
|
pub mod base64;
|
|
|
|
pub use base64::Base64;
|
|
use serde::{Deserialize, Serialize};
|