pub struct StatusSinks<T> { /* private fields */ }
Expand description

Holds a list of UnboundedSenders, each associated with a certain time period. Every time the period elapses, we push an element on the sender.

Senders are removed only when they are closed.

Implementations

Builds a new empty collection.

Adds a sender to the collection.

The interval is the time period between two pushes on the sender.

Waits until one of the sinks is ready, then returns an object that can be used to send an element on said sink.

If the object isn’t used to send an element, the slot is skipped.

Trait Implementations

Returns the “default value” for a 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

Returns the argument unchanged.

Calls U::from(self).

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

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.