pub struct CancellationManager { /* private fields */ }Expand description
Simple cancellation manager for tracking cancelled requests
Implementations§
Source§impl CancellationManager
impl CancellationManager
pub fn new() -> Self
pub async fn cancel_request(&self, request_id: &str)
pub async fn is_cancelled(&self, request_id: &str) -> bool
pub async fn clear_cancelled(&self, request_id: &str)
Trait Implementations§
Source§impl Clone for CancellationManager
impl Clone for CancellationManager
Source§fn clone(&self) -> CancellationManager
fn clone(&self) -> CancellationManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CancellationManager
impl Debug for CancellationManager
Auto Trait Implementations§
impl Freeze for CancellationManager
impl !RefUnwindSafe for CancellationManager
impl Send for CancellationManager
impl Sync for CancellationManager
impl Unpin for CancellationManager
impl !UnwindSafe for CancellationManager
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