Skip to main content

ChannelTrait

Trait ChannelTrait 

Source
pub trait ChannelTrait: Send {
    // Provided methods
    fn get_config(&self) -> &ChannelConfig { ... }
    fn read(&self, _: &mut Cursor<&Vec<u8>>) -> IOResult<Value> { ... }
    fn write(&self, _: &mut Cursor<&mut Vec<u8>>, _: &Value) -> IOResult<()> { ... }
}

Provided Methods§

Source

fn get_config(&self) -> &ChannelConfig

Source

fn read(&self, _: &mut Cursor<&Vec<u8>>) -> IOResult<Value>

Source

fn write(&self, _: &mut Cursor<&mut Vec<u8>>, _: &Value) -> IOResult<()>

Implementors§