[][src]Struct rusty_junctions::channels::RecvChannel

pub struct RecvChannel<R> { /* fields omitted */ }

Synchronous, value receiving channel.

This channel type is characterized by the return type of its recv method. No messages can be sent through this channel, but the value generated by running a Join Pattern

Sending a message on this channel will block the current thread until a Join Pattern that this channel is part of has fired.

Methods

impl<R> RecvChannel<R> where
    R: Any + Send
[src]

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

Receive value generated by fired Join Pattern.

Panics

Panics if it was not possible to send a return Sender to the Junction.

Trait Implementations

impl<R: Clone> Clone for RecvChannel<R>[src]

Auto Trait Implementations

impl<R> !RefUnwindSafe for RecvChannel<R>

impl<R> Send for RecvChannel<R> where
    R: Send

impl<R> !Sync for RecvChannel<R>

impl<R> Unpin for RecvChannel<R> where
    R: Unpin

impl<R> !UnwindSafe for RecvChannel<R>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.