Struct std::comm::Port

pub struct Port<T> {
    x: Port<T>,
}

Trait Implementations

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