#[repr(u8)]pub enum CancelReason {
ClientCancel = 0,
DeadlineExceeded = 1,
ResourceExhausted = 2,
}Expand description
Reasons for cancelling a channel.
Variants§
ClientCancel = 0
Client requested cancellation.
DeadlineExceeded = 1
Deadline exceeded.
ResourceExhausted = 2
Resource exhausted.
Trait Implementations§
Source§impl Clone for CancelReason
impl Clone for CancelReason
Source§fn clone(&self) -> CancelReason
fn clone(&self) -> CancelReason
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CancelReason
impl Debug for CancelReason
Source§impl<'ʄ> Facet<'ʄ> for CancelReason
impl<'ʄ> Facet<'ʄ> for CancelReason
Source§impl PartialEq for CancelReason
impl PartialEq for CancelReason
impl Copy for CancelReason
impl Eq for CancelReason
impl StructuralPartialEq for CancelReason
Auto Trait Implementations§
impl Freeze for CancelReason
impl RefUnwindSafe for CancelReason
impl Send for CancelReason
impl Sync for CancelReason
impl Unpin for CancelReason
impl UnwindSafe for CancelReason
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)