Struct std::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<S: Send, R: Send>(&self, x: S)

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

fn recv<S: Send, R: Send>(&self) -> R

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

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