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
impl<T> Channel for AsyncSender<T>
impl<T> Channel for AsyncReceiver<T>
impl<T> Channel for SyncSender<T>
impl<T> Channel for SyncReceiver<T>
impl<'a, T: Channel> Channel for &'a T