Struct mpstthree::role::all_to_a::RoleAlltoA [−][src]
pub struct RoleAlltoA<R1, R2> where
R1: Role,
R2: Role,
R1::Dual: Role,
R2::Dual: Role, { /* fields omitted */ }
Expand description
This structure is used by any participant other than A to receive a choice given by A.
This struct
is used for branching without enum
. See
the test 05_usecase.rs
.
Example
use mpstthree::role::all_to_a::RoleAlltoA;
use mpstthree::role::end::RoleEnd;
use mpstthree::role::Role; // Only used for example
type NameAlltoADual = RoleAlltoA<RoleEnd, RoleEnd>;
let _ = NameAlltoADual::new(); // Only used for example
Implementations
Return the right continuation for RoleAlltoA
Return the left continuation for RoleAlltoA
Trait Implementations
type Dual = RoleAtoAll<R1::Dual, R2::Dual>
type Dual = RoleAtoAll<R1::Dual, R2::Dual>
The Role type dual to Self
.
Auto Trait Implementations
impl<R1, R2> RefUnwindSafe for RoleAlltoA<R1, R2>
impl<R1, R2> Send for RoleAlltoA<R1, R2>
impl<R1, R2> Sync for RoleAlltoA<R1, R2>
impl<R1, R2> Unpin for RoleAlltoA<R1, R2>
impl<R1, R2> UnwindSafe for RoleAlltoA<R1, R2>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more