pub struct QueuedCall { /* private fields */ }Expand description
A background call started by Call::enqueue().
Dropping this handle does not request cancellation. Use cancel() when the
in-flight work should be stopped.
Implementations§
Source§impl QueuedCall
impl QueuedCall
pub fn handle(&self) -> CallHandle
pub fn cancel(&self)
pub fn is_canceled(&self) -> bool
pub fn is_executed(&self) -> bool
pub async fn await_response(self) -> Result<Response<ResponseBody>, WireError>
Auto Trait Implementations§
impl !RefUnwindSafe for QueuedCall
impl !UnwindSafe for QueuedCall
impl Freeze for QueuedCall
impl Send for QueuedCall
impl Sync for QueuedCall
impl Unpin for QueuedCall
impl UnsafeUnpin for QueuedCall
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