Start rewrite, get layers working

This commit is contained in:
Michael Mikovsky
2025-06-09 12:37:49 -06:00
parent 6ac1b5214e
commit a148e4e0a8
31 changed files with 527 additions and 792 deletions
+10 -5
View File
@@ -1,9 +1,14 @@
pub trait Layer: Serialize + Deserialize<'static> + Sized {
fn encode(&mut self, data: &[u8]) -> Vec<u8>;
fn decode(&mut self, data: &[u8]) -> Vec<u8>;
pub enum LayerConfig {
Base64,
Handshake,
}
pub mod base64;
mod builder;
pub mod handshake;
pub use base64::Base64;
use serde::{Deserialize, Serialize};
pub use base64::Base64Layer;
pub use handshake::HandshakeLayer;
pub use builder::build_client;
pub use builder::create_server_builder;