pub struct Pausable<F> { /* private fields */ }
Expand description
A future or a stream that can be paused and resumed.
Implementations§
Source§impl<I> Pausable<I>
impl<I> Pausable<I>
Sourcepub fn controller(&self) -> Controller
pub fn controller(&self) -> Controller
Get the controller.
Trait Implementations§
impl<'__pin, F> Unpin for Pausable<F>where
PinnedFieldsOf<__Origin<'__pin, F>>: Unpin,
Auto Trait Implementations§
impl<F> Freeze for Pausable<F>where
F: Freeze,
impl<F> RefUnwindSafe for Pausable<F>where
F: RefUnwindSafe,
impl<F> Send for Pausable<F>where
F: Send,
impl<F> Sync for Pausable<F>where
F: Sync,
impl<F> UnwindSafe for Pausable<F>where
F: 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<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more