Trait chan::Channel [] [src]

pub trait Channel {
    type Item;
    fn id(&self) -> ChannelId;
    fn subscribe(&self, id: u64, mutex: Arc<Mutex<()>>, condvar: Arc<Condvar>) -> u64;
    fn unsubscribe(&self, key: u64);
}

Associated Types

type Item

Required Methods

fn id(&self) -> ChannelId

fn subscribe(&self, id: u64, mutex: Arc<Mutex<()>>, condvar: Arc<Condvar>) -> u64

fn unsubscribe(&self, key: u64)

Implementors