pub struct PauseControl { /* private fields */ }Expand description
Control for pausing and resuming a streaming response
Implementations§
Source§impl PauseControl
impl PauseControl
Sourcepub fn new() -> PauseControl
pub fn new() -> PauseControl
Create a pause controller in the running state.
Sourcepub fn pause(&self)
pub fn pause(&self)
Pause polling of the public stream until PauseControl::resume is called.
Trait Implementations§
Source§impl Default for PauseControl
impl Default for PauseControl
Source§fn default() -> PauseControl
fn default() -> PauseControl
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PauseControl
impl RefUnwindSafe for PauseControl
impl Send for PauseControl
impl Sync for PauseControl
impl Unpin for PauseControl
impl UnsafeUnpin for PauseControl
impl UnwindSafe for PauseControl
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