pub struct Chan<T> { x: Chan<T>, }
impl<T: Send> GenericChan<T> for Chan<T>
fn send(&self, val: T)
Sends a message.
impl<T: Send> GenericSmartChan<T> for Chan<T>
fn try_send(&self, val: T) -> bool
Sends a message, or report if the receiver has closed the connection.
impl<T: Send> SendDeferred<T> for Chan<T>
fn send_deferred(&self, val: T)
fn try_send_deferred(&self, val: T) -> 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
).