Struct mpstthree::role::b_to_all::RoleBtoAll[][src]

pub struct RoleBtoAll<R1, R2> where
    R1: Role,
    R2: Role,
    R1::Dual: Role,
    R2::Dual: Role
{ /* fields omitted */ }
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 NameBtoAllDual = RoleBtoAll<RoleEnd, RoleEnd>;

let _ = NameBtoAllDual::new(); // Only used for example

Implementations

Return the right continuation for RoleBtoAll

Return the left continuation for RoleBtoAll

Trait Implementations

Formats the value using the given formatter. Read more

The Role type dual to Self.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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