pub struct WrapperStrategy<S>where
S: PollStrategy + Send + 'static,{ /* private fields */ }Expand description
A polling strategy that wraps another strategy This is useful for coercing strategies
Implementations§
Source§impl<S> WrapperStrategy<S>where
S: PollStrategy + Send + 'static,
impl<S> WrapperStrategy<S>where
S: PollStrategy + Send + 'static,
Trait Implementations§
Source§impl<S> Clone for WrapperStrategy<S>
impl<S> Clone for WrapperStrategy<S>
Source§fn clone(&self) -> WrapperStrategy<S>
fn clone(&self) -> WrapperStrategy<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 for WrapperStrategy<S>
impl<S> Debug for WrapperStrategy<S>
Source§impl<S> PollStrategy for WrapperStrategy<S>where
S: PollStrategy + Send + 'static,
impl<S> PollStrategy for WrapperStrategy<S>where
S: PollStrategy + Send + 'static,
Auto Trait Implementations§
impl<S> Freeze for WrapperStrategy<S>where
S: Freeze,
impl<S> RefUnwindSafe for WrapperStrategy<S>where
S: RefUnwindSafe,
impl<S> Send for WrapperStrategy<S>
impl<S> Sync for WrapperStrategy<S>where
S: Sync,
impl<S> Unpin for WrapperStrategy<S>where
S: Unpin,
impl<S> UnwindSafe for WrapperStrategy<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