Struct executors::bichannel::Endpoint[][src]

pub struct Endpoint<In, Out> { /* fields omitted */ }

One end of a bichannel

This end can send In type to the other end and receive Out type from the other end.

Implementations

impl<In, Out> Endpoint<In, Out>[src]

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

Send t to the other end

This functions works just like mpsc send.

pub fn try_recv(&self) -> Result<In, TryRecvError>[src]

Receive something from the channel without blocking

This functions works just like mpsc try_recv.

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

Receive something from the channel, blocking until something is available

This functions works just like mpsc recv.

pub fn recv_timeout(&self, timeout: Duration) -> Result<In, RecvTimeoutError>[src]

Receive something from the channel, blocking until something is available or the timeout expires

This functions works just like mpsc recv_timeout.

pub fn iter(&self) -> Iter<'_, In>[src]

Iterate over incoming data

This functions works just like mpsc iter.

pub fn try_iter(&self) -> TryIter<'_, In>[src]

Iterate over incoming data

This functions works just like mpsc try_iter.

Auto Trait Implementations

impl<In, Out> !RefUnwindSafe for Endpoint<In, Out>

impl<In, Out> Send for Endpoint<In, Out> where
    In: Send,
    Out: Send

impl<In, Out> !Sync for Endpoint<In, Out>

impl<In, Out> Unpin for Endpoint<In, Out>

impl<In, Out> !UnwindSafe for Endpoint<In, Out>

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> Pointable for T

type Init = T

The type for initializers.

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>,