[][src]Struct rusty_junctions::channels::SendChannel

pub struct SendChannel<T> { /* fields omitted */ }

Asynchronous, message sending channel.

This channel type is characterized by the argument type of its send method. It will only be able to send messages to the Junction but not recover values generated by Join Patterns that have been fired.

Sending a message this channel will not block the current thread, but may allow a Join Pattern that it is part of to fire.

Methods

impl<T> SendChannel<T> where
    T: Any + Send
[src]

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

Trait Implementations

impl<T: Clone> Clone for SendChannel<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for SendChannel<T>

impl<T> Send for SendChannel<T> where
    T: Send

impl<T> !Sync for SendChannel<T>

impl<T> Unpin for SendChannel<T> where
    T: Unpin

impl<T> !UnwindSafe for SendChannel<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> 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.