pub struct CallHandle { /* private fields */ }Expand description
A cloneable handle for observing and canceling a logical HTTP call.
The handle stays valid after the Call has been moved into execute() or
enqueue(), which makes it the OkHttp-style cancellation surface for Rust
async tasks.
Implementations§
Source§impl CallHandle
impl CallHandle
pub fn cancel(&self)
pub fn is_canceled(&self) -> bool
pub fn is_executed(&self) -> bool
Trait Implementations§
Source§impl Clone for CallHandle
impl Clone for CallHandle
Source§fn clone(&self) -> CallHandle
fn clone(&self) -> CallHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for CallHandle
impl !UnwindSafe for CallHandle
impl Freeze for CallHandle
impl Send for CallHandle
impl Sync for CallHandle
impl Unpin for CallHandle
impl UnsafeUnpin for CallHandle
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