Struct mpstthree::role::b_to_all::RoleBtoAll
source · pub struct RoleBtoAll<R1, R2>{ /* private fields */ }
Expand description
Gives the order to the
MeshedChannels
related to B
to execute its Session
fields
with every other processes.
This struct
is used for branching without enum
. See
the test 05_usecase.rs
.
§Example
use mpstthree::role::b_to_all::RoleBtoAll;
use mpstthree::role::end::RoleEnd;
use mpstthree::role::Role; // Only used for example
type StackBtoAllDual = RoleBtoAll<RoleEnd, RoleEnd>;
let _ = StackBtoAllDual::new(); // Only used for example
Implementations§
source§impl<R1: Role, R2: Role> RoleBtoAll<R1, R2>
impl<R1: Role, R2: Role> RoleBtoAll<R1, R2>
sourcepub fn continuation_left(&self) -> R1
pub fn continuation_left(&self) -> R1
Return the right continuation for RoleBtoAll
sourcepub fn continuation_right(&self) -> R2
pub fn continuation_right(&self) -> R2
Return the left continuation for RoleBtoAll
Trait Implementations§
source§impl<R1, R2> Debug for RoleBtoAll<R1, R2>
impl<R1, R2> Debug for RoleBtoAll<R1, R2>
Auto Trait Implementations§
impl<R1, R2> Freeze for RoleBtoAll<R1, R2>
impl<R1, R2> RefUnwindSafe for RoleBtoAll<R1, R2>
impl<R1, R2> Send for RoleBtoAll<R1, R2>
impl<R1, R2> Sync for RoleBtoAll<R1, R2>
impl<R1, R2> Unpin for RoleBtoAll<R1, R2>
impl<R1, R2> UnwindSafe for RoleBtoAll<R1, R2>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more