[−][src]Struct rusty_junctions::patterns::binary::SendPartialPattern
Two SendChannel
partial Join Pattern.
Methods
impl<T, U> SendPartialPattern<T, U> where
T: Any + Send,
U: Any + Send,
[src]
T: Any + Send,
U: Any + Send,
pub fn and<V>(
self,
send_channel: &SendChannel<V>
) -> SendPartialPattern<T, U, V> where
V: Any + Send,
[src]
self,
send_channel: &SendChannel<V>
) -> SendPartialPattern<T, U, V> where
V: Any + Send,
Create a ternary partial JoinPattern
with three send channels.
Create a new ternary partial JoinPattern
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, U, R> where
R: Any + Send,
[src]
self,
recv_channel: &RecvChannel<R>
) -> RecvPartialPattern<T, U, R> where
R: Any + Send,
Create a ternary partial JoinPattern
with two send and receive channel.
Create a new ternary partial JoinPattern
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<V, R>(
self,
bidir_channel: &BidirChannel<V, R>
) -> BidirPartialPattern<T, U, V, R> where
V: Any + Send,
R: Any + Send,
[src]
self,
bidir_channel: &BidirChannel<V, R>
) -> BidirPartialPattern<T, U, V, R> where
V: Any + Send,
R: Any + Send,
Create a ternary partial JoinPattern
with two send and bidirectional channel.
Create a new ternary 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, U) + Send + Clone + 'static,
[src]
F: Fn(T, U) + 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, U> !RefUnwindSafe for SendPartialPattern<T, U>
impl<T, U> Send for SendPartialPattern<T, U> where
T: Send,
U: Send,
T: Send,
U: Send,
impl<T, U> !Sync for SendPartialPattern<T, U>
impl<T, U> Unpin for SendPartialPattern<T, U> where
T: Unpin,
U: Unpin,
T: Unpin,
U: Unpin,
impl<T, U> !UnwindSafe for SendPartialPattern<T, U>
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>,