pub struct FutureStrategy<F> { /* private fields */ }Expand description
A polling strategy that uses a future factory to create futures for polling
Implementations§
Trait Implementations§
Source§impl<F: Clone> Clone for FutureStrategy<F>
impl<F: Clone> Clone for FutureStrategy<F>
Source§fn clone(&self) -> FutureStrategy<F>
fn clone(&self) -> FutureStrategy<F>
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<F> Debug for FutureStrategy<F>
impl<F> Debug for FutureStrategy<F>
Source§impl<F> PollStrategy for FutureStrategy<F>
impl<F> PollStrategy for FutureStrategy<F>
Auto Trait Implementations§
impl<F> Freeze for FutureStrategy<F>
impl<F> !RefUnwindSafe for FutureStrategy<F>
impl<F> Send for FutureStrategy<F>
impl<F> Sync for FutureStrategy<F>
impl<F> Unpin for FutureStrategy<F>
impl<F> !UnwindSafe for FutureStrategy<F>
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