Struct sp_utils::status_sinks::StatusSinks [−][src]
pub struct StatusSinks<T> { /* fields omitted */ }
Expand description
Holds a list of UnboundedSender
s, 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
Auto Trait Implementations
impl<T> !RefUnwindSafe for StatusSinks<T>
impl<T> Send for StatusSinks<T> where
T: Send,
impl<T> Sync for StatusSinks<T> where
T: Send,
impl<T> Unpin for StatusSinks<T>
impl<T> !UnwindSafe for StatusSinks<T>