Trait chan::Channel [] [src]

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

Associated Types

type Item

Required Methods

fn id(&self) -> u64

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

fn unsubscribe(&self, key: u64)

Implementors