Struct sync::comm::DuplexStream[src]

pub struct DuplexStream<S, R> {
    // some fields omitted
}

An extension of pipes::stream that allows both sending and receiving.

Methods

impl<S: Send, R: Send> DuplexStream<S, R>

fn send(&self, x: S)

fn send_opt(&self, x: S) -> Result<(), S>

fn recv(&self) -> R

fn try_recv(&self) -> Result<R, TryRecvError>

fn recv_opt(&self) -> Result<R, ()>