pub struct SyncChan<T> { priv duplex_stream: DuplexStream<T, ()>, }
An extension of pipes::stream
that provides synchronous message sending.
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.
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).