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§impl<S: Debug> Debug for StreamStrategy<S>
impl<S: Debug> Debug for StreamStrategy<S>
Source§impl<S: Stream + Unpin> PollStrategy for StreamStrategy<S>
impl<S: Stream + Unpin> PollStrategy for StreamStrategy<S>
Source§fn poll_drive(
&mut self,
cx: &mut Context<'_>,
_: &PollSnapshot,
) -> Poll<Option<()>>
fn poll_drive( &mut self, cx: &mut Context<'_>, _: &PollSnapshot, ) -> Poll<Option<()>>
Poll to bind a waker to the next instance. Read more
Source§fn on_poll(&mut self, snapshot: &PollSnapshot)
fn on_poll(&mut self, snapshot: &PollSnapshot)
Signifies a poll was made
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> UnsafeUnpin for StreamStrategy<S>where
S: UnsafeUnpin,
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