[][src]Struct rusty_junctions::patterns::unary::SendPartialPattern

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

SendChannel partial Join Pattern.

Methods

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

pub fn and<U>(self, send_channel: &SendChannel<U>) -> SendPartialPattern<T, U> where
    U: Any + Send
[src]

Create a binary partial Join Pattern with two send channels.

Create a new binary partial Join Pattern that starts with the current pattern and includes a new SendChannel after that.

Panics

Panics if the supplied SendChannel does not carry the same JunctionID as this SendPartialPattern, i.e. has not been created by and is associated with the same Junction.

pub fn and_recv<R>(
    self,
    recv_channel: &RecvChannel<R>
) -> RecvPartialPattern<T, R> where
    R: Any + Send
[src]

Create a binary partial Join Pattern with a send and receive channel.

Create a new binary partial Join Pattern that starts with the current pattern and includes a new RecvChannel after that.

Panics

Panics if the supplied RecvChannel does not carry the same JunctionID as this SendPartialPattern, i.e. has not been created by and is associated with the same Junction.

pub fn and_bidir<U, R>(
    self,
    bidir_channel: &BidirChannel<U, R>
) -> BidirPartialPattern<T, U, R> where
    U: Any + Send,
    R: Any + Send
[src]

Create a binary partial Join Pattern with a send and bidirectional channel.

Create a new binary partial Join Pattern that starts with the current pattern and includes a new BidirChannel after that.

Panics

Panics if the supplied BidirChannel does not carry the same JunctionID as this SendPartialPattern, i.e. has not been created by and is associated with the same Junction.

pub fn then_do<F>(self, f: F) where
    F: Fn(T) + Send + Clone + 'static, 
[src]

Create full Join Pattern and send request to add it to Junction.

Create a full Join Pattern by taking the channels that are part of the partial pattern and adding a function to be executed when there is at least one message sent on each channel. Attempt to add the Join Pattern to the Junction after creation.

Panics

Panics if it was not possible to send the request to add the newly create Join Pattern to the Junction.

Auto Trait Implementations

impl<T> !RefUnwindSafe for SendPartialPattern<T>

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

impl<T> !Sync for SendPartialPattern<T>

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

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