Struct par_stream::BroadcastGuard[][src]

pub struct BroadcastGuard<T> { /* fields omitted */ }
Expand description

The guard type returned from broadcast().

The guard is used to register new broadcast receivers, each consuming elements from the stream. The guard must be dropped, either by guard.finish() or drop(guard) before the receivers start consuming data. Otherwise, the receivers will receive panic.

Implementations

Creates a new receiver.

Drops the guard, so that created receivers can consume data without panic.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

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.

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.