Trait snow::NoiseSessionState [] [src]

pub trait NoiseSessionState {
    fn is_payload_encrypted(&self) -> bool;
    fn write_message(&mut self,
                     payload: &[u8],
                     output: &mut [u8])
                     -> Result<usize, NoiseError>; fn read_message(&mut self,
                    input: &[u8],
                    payload: &mut [u8])
                    -> Result<usize, NoiseError>; }

Methods that must be implemented across all states in the NoiseSession state machine.

Required Methods

Implementors