[][src]Struct queen::stream::Stream

pub struct Stream<T: Send> {
    pub tx: StreamTx<T>,
    pub rx: StreamRx<T>,
}

Fields

tx: StreamTx<T>rx: StreamRx<T>

Methods

impl<T: Send> Stream<T>[src]

pub fn pipe(capacity: usize, attr: Message) -> Result<(Stream<T>, Stream<T>)>[src]

pub fn split(self) -> (StreamTx<T>, StreamRx<T>)[src]

pub fn attr(&self) -> &Message[src]

pub fn send(&self, data: T) -> Result<(), SendError<T>>[src]

pub fn recv(&self) -> Result<T, RecvError>[src]

pub fn close(&self)[src]

pub fn is_close(&self) -> bool[src]

pub fn wait(&self, timeout: Option<Duration>) -> Result<T, RecvError>[src]

Trait Implementations

impl<T: Send> Evented for Stream<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Stream<T>

impl<T> Send for Stream<T>

impl<T> !Sync for Stream<T>

impl<T> Unpin for Stream<T>

impl<T> !UnwindSafe for Stream<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,