[][src]Trait protocol::wire::stream::Transport

pub trait Transport {
    fn process_data(
        &mut self,
        read: &mut dyn Read,
        settings: &Settings
    ) -> Result<(), Error>;
fn receive_raw_packet(&mut self) -> Result<Option<Vec<u8>>, Error>;
fn send_raw_packet(
        &mut self,
        write: &mut dyn Write,
        packet: &[u8],
        settings: &Settings
    ) -> Result<(), Error>; }

Required methods

fn process_data(
    &mut self,
    read: &mut dyn Read,
    settings: &Settings
) -> Result<(), Error>

fn receive_raw_packet(&mut self) -> Result<Option<Vec<u8>>, Error>

fn send_raw_packet(
    &mut self,
    write: &mut dyn Write,
    packet: &[u8],
    settings: &Settings
) -> Result<(), Error>

Loading content...

Implementors

Loading content...