pub struct CancellableRequest {
pub id: Value,
pub method: String,
pub created_at: u64,
pub cancelled: bool,
pub cancel_reason: Option<String>,
}Expand description
A cancellable request
Fields§
§id: ValueRequest ID
method: StringRequest method
created_at: u64Timestamp when request was created
cancelled: boolWhether the request has been cancelled
cancel_reason: Option<String>Cancellation reason
Trait Implementations§
Source§impl Clone for CancellableRequest
impl Clone for CancellableRequest
Source§fn clone(&self) -> CancellableRequest
fn clone(&self) -> CancellableRequest
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 moreAuto Trait Implementations§
impl Freeze for CancellableRequest
impl RefUnwindSafe for CancellableRequest
impl Send for CancellableRequest
impl Sync for CancellableRequest
impl Unpin for CancellableRequest
impl UnwindSafe for CancellableRequest
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