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