Struct extra::comm::SyncChan

pub struct SyncChan<T> {
    priv duplex_stream: DuplexStream<T, ()>,
}

An extension of pipes::stream that provides synchronous message sending.

Trait Implementations

impl<T: std::kinds::Send> std::comm::GenericChan for SyncChan<T>

fn send(&self, val: T)

impl<T: std::kinds::Send> std::comm::GenericSmartChan for SyncChan<T>

fn try_send(&self, val: T) -> bool

Sends a message, or report if the receiver has closed the connection before receiving.