pub struct SourceSet<S>(/* private fields */);Expand description
A composable collection of message sources (intervals and streams) for an actor.
Sources added earlier in the chain have higher polling priority. If an earlier source is consistently ready, later sources may be starved. In practice this rarely matters for intervals and moderate-throughput streams, but keep it in mind when combining a high-throughput stream with other sources.
Implementations§
Trait Implementations§
Source§impl<S> Stream for SourceSet<S>
impl<S> Stream for SourceSet<S>
Auto Trait Implementations§
impl<S> Freeze for SourceSet<S>where
S: Freeze,
impl<S> RefUnwindSafe for SourceSet<S>where
S: RefUnwindSafe,
impl<S> Send for SourceSet<S>where
S: Send,
impl<S> Sync for SourceSet<S>where
S: Sync,
impl<S> Unpin for SourceSet<S>where
S: Unpin,
impl<S> UnsafeUnpin for SourceSet<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for SourceSet<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more