pub trait PollStrategyExt: PollStrategy + Sized {
// Provided method
fn build_stream(
self,
ctx: &PollContext,
) -> Pin<Box<dyn Stream<Item = ()> + Send>>
where Self::Stream: 'static { ... }
}Expand description
Extension trait for PollStrategy
Provided Methods§
Sourcefn 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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.