pub struct RefusalReason(pub u16);Expand description
Why one side is declining to go on.
Tuple Fields§
§0: u16Implementations§
Source§impl RefusalReason
impl RefusalReason
Sourcepub const MISSING_CAPABILITY: Self
pub const MISSING_CAPABILITY: Self
The other side needs a capability this side does not have.
Sourcepub const ABI_TOO_NEW: Self
pub const ABI_TOO_NEW: Self
The other side speaks a major ABI version from the future.
Sourcepub const ABI_TOO_OLD: Self
pub const ABI_TOO_OLD: Self
The other side speaks a major ABI version that is no longer supported.
Sourcepub const UNSUPPORTED_RECORD: Self
pub const UNSUPPORTED_RECORD: Self
A record arrived that this side does not know how to handle and cannot skip.
Sourcepub const RESOURCE_LIMIT: Self
pub const RESOURCE_LIMIT: Self
The request is larger than this side is willing to serve.
Trait Implementations§
Source§impl Clone for RefusalReason
impl Clone for RefusalReason
Source§fn clone(&self) -> RefusalReason
fn clone(&self) -> RefusalReason
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 moreimpl Copy for RefusalReason
Source§impl Debug for RefusalReason
impl Debug for RefusalReason
Source§impl Display for RefusalReason
impl Display for RefusalReason
impl Eq for RefusalReason
Source§impl Hash for RefusalReason
impl Hash for RefusalReason
Source§impl Ord for RefusalReason
impl Ord for RefusalReason
Source§fn cmp(&self, other: &RefusalReason) -> Ordering
fn cmp(&self, other: &RefusalReason) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RefusalReason
impl PartialEq for RefusalReason
Source§impl PartialOrd for RefusalReason
impl PartialOrd for RefusalReason
impl StructuralPartialEq for RefusalReason
Auto Trait Implementations§
impl Freeze for RefusalReason
impl RefUnwindSafe for RefusalReason
impl Send for RefusalReason
impl Sync for RefusalReason
impl Unpin for RefusalReason
impl UnsafeUnpin for RefusalReason
impl UnwindSafe for RefusalReason
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