[−][src]Struct rusty_junctions::channels::RecvChannel
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]
R: Any + Send,
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]
fn clone(&self) -> RecvChannel<R>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<R> !RefUnwindSafe for RecvChannel<R>
impl<R> Send for RecvChannel<R> where
R: Send,
R: Send,
impl<R> !Sync for RecvChannel<R>
impl<R> Unpin for RecvChannel<R> where
R: Unpin,
R: Unpin,
impl<R> !UnwindSafe for RecvChannel<R>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,