[−][src]Struct rusty_junctions::patterns::unary::SendPartialPattern
SendChannel
partial Join Pattern.
Methods
impl<T> SendPartialPattern<T> where
T: Any + Send,
[src]
T: Any + Send,
pub fn and<U>(self, send_channel: &SendChannel<U>) -> SendPartialPattern<T, U> where
U: Any + Send,
[src]
U: Any + Send,
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]
self,
recv_channel: &RecvChannel<R>
) -> RecvPartialPattern<T, R> where
R: Any + Send,
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]
self,
bidir_channel: &BidirChannel<U, R>
) -> BidirPartialPattern<T, U, R> where
U: Any + Send,
R: Any + Send,
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]
F: Fn(T) + Send + Clone + 'static,
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,
T: Send,
impl<T> !Sync for SendPartialPattern<T>
impl<T> Unpin for SendPartialPattern<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for SendPartialPattern<T>
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, 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>,