pub trait GenericPort<T> { fn recv(&self) -> T; fn try_recv(&self) -> Option<T>; }
A trait for things that can receive multiple messages.
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.
MegaPipe<T>
SharedPort<T>
Port<T>
ReaderPort<R>
SharedPort<T>
Port<T>
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
).