[src]

Struct sync::DuplexStream

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 try_send(&self, x: S) -> bool

fn recv(&self) -> R

fn try_recv(&self) -> TryRecvResult<R>

fn recv_opt(&self) -> Option<R>