pub struct SyncPort<T> { priv duplex_stream: DuplexStream<(), T>, }
An extension of pipes::stream
that acknowledges each message received.
impl<T: std::kinds::Send> std::comm::GenericPort for SyncPort<T>
fn recv(&self) -> T
fn try_recv(&self) -> std::option::Option
impl<T: std::kinds::Send> std::comm::Peekable for SyncPort<T>
fn peek(&self) -> bool
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
).