Skip to main content

BidirPartialPattern

Struct BidirPartialPattern 

Source
pub struct BidirPartialPattern<T, U, V, R> { /* private fields */ }
Expand description

SendChannel & BidirChannel partial Join Pattern.

Implementations§

Source§

impl<T, U, V, R> BidirPartialPattern<T, U, V, R>
where T: Any + Send, U: Any + Send, V: Any + Send, R: Any + Send,

Source

pub fn then_do<F>(self, f: F)
where F: Fn(T, U, V) -> R + Send + Clone + 'static,

Create full JoinPattern 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, V, R> Freeze for BidirPartialPattern<T, U, V, R>

§

impl<T, U, V, R> RefUnwindSafe for BidirPartialPattern<T, U, V, R>

§

impl<T, U, V, R> Send for BidirPartialPattern<T, U, V, R>
where T: Send, U: Send, V: Send, R: Send,

§

impl<T, U, V, R> Sync for BidirPartialPattern<T, U, V, R>
where T: Sync, U: Sync, V: Sync, R: Sync,

§

impl<T, U, V, R> Unpin for BidirPartialPattern<T, U, V, R>
where T: Unpin, U: Unpin, V: Unpin, R: Unpin,

§

impl<T, U, V, R> UnsafeUnpin for BidirPartialPattern<T, U, V, R>

§

impl<T, U, V, R> UnwindSafe for BidirPartialPattern<T, U, V, R>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.