Channel

Trait Channel 

Source
pub trait Channel<T>: Sync + Send {
    // Required methods
    fn get_channel_type(&self) -> ChannelType;
    fn snapshot(&self) -> T;
    fn len(&self) -> usize;
    fn is_empty(&self) -> bool;
    fn version(&self) -> u32;
    fn set_version(&mut self, version: u32);
    fn get_mut(&mut self) -> &mut T;
    fn persistent(&self) -> bool;
}

Required Methods§

Source

fn get_channel_type(&self) -> ChannelType

Source

fn snapshot(&self) -> T

Source

fn len(&self) -> usize

Source

fn is_empty(&self) -> bool

Source

fn version(&self) -> u32

Source

fn set_version(&mut self, version: u32)

Source

fn get_mut(&mut self) -> &mut T

Source

fn persistent(&self) -> bool

Implementors§