pub struct StreamControl { /* private fields */ }Expand description
Handle for controlling an active stream.
Provides methods to pause, resume, and cancel streaming.
Implementations§
Source§impl StreamControl
impl StreamControl
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Checks if cancellation has been requested.
Trait Implementations§
Source§impl Clone for StreamControl
impl Clone for StreamControl
Source§impl Debug for StreamControl
impl Debug for StreamControl
Auto Trait Implementations§
impl !Freeze for StreamControl
impl RefUnwindSafe for StreamControl
impl Send for StreamControl
impl Sync for StreamControl
impl Unpin for StreamControl
impl UnwindSafe for StreamControl
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