pub struct Port<T> { x: Port<T>, }
impl<T: Send> GenericPort<T> for Port<T>
fn recv(&self) -> T
Receives a message, or fails if the connection closes.
fn try_recv(&self) -> Option<T>
Receives a message, or returns none
if
the connection is closed or closes.
impl<T: Send> Peekable<T> for Port<T>
fn peek(&self) -> bool
Returns true if a message is available
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
).