pub struct StreamStrategy<S> { /* private fields */ }Expand description
A polling strategy that uses a provided stream
Implementations§
Trait Implementations§
Source§impl<S: Clone> Clone for StreamStrategy<S>
impl<S: Clone> Clone for StreamStrategy<S>
Source§fn clone(&self) -> StreamStrategy<S>
fn clone(&self) -> StreamStrategy<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: Debug> Debug for StreamStrategy<S>
impl<S: Debug> Debug for StreamStrategy<S>
Source§impl<S> PollStrategy for StreamStrategy<S>
impl<S> PollStrategy for StreamStrategy<S>
Source§fn poll_strategy(self: Box<Self>, _ctx: &PollContext) -> Self::Stream
fn poll_strategy(self: Box<Self>, _ctx: &PollContext) -> Self::Stream
Create a stream that completes when the next poll should occur
Auto Trait Implementations§
impl<S> Freeze for StreamStrategy<S>where
S: Freeze,
impl<S> RefUnwindSafe for StreamStrategy<S>where
S: RefUnwindSafe,
impl<S> Send for StreamStrategy<S>where
S: Send,
impl<S> Sync for StreamStrategy<S>where
S: Sync,
impl<S> Unpin for StreamStrategy<S>where
S: Unpin,
impl<S> UnwindSafe for StreamStrategy<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PollStrategyExt for Twhere
T: PollStrategy,
impl<T> PollStrategyExt for Twhere
T: PollStrategy,
Source§fn build_stream(
self,
ctx: &PollContext,
) -> Pin<Box<dyn Stream<Item = ()> + Send>>where
Self::Stream: 'static,
fn build_stream(
self,
ctx: &PollContext,
) -> Pin<Box<dyn Stream<Item = ()> + Send>>where
Self::Stream: 'static,
Build a boxed stream from the strategy
This is a convenience method that boxes the strategy and calls
poll_strategy