pub trait SecurityProcessor {
type Error;
// Required methods
fn apply(&mut self, frame: &mut [u8]) -> Result<usize, Self::Error>;
fn process(&mut self, frame: &mut [u8]) -> Result<usize, Self::Error>;
}Expand description
Applies or removes security (encryption/authentication) on frames.