pub struct RejectionReason(/* private fields */);Expand description
Nonzero application negotiation rejection reason.
Implementations§
Source§impl RejectionReason
impl RejectionReason
Sourcepub const APPLICATION_DECLINED: Self
pub const APPLICATION_DECLINED: Self
The application declined without a more specific incompatibility.
Sourcepub const INCOMPATIBLE_APPLICATION_PROTOCOL: Self
pub const INCOMPATIBLE_APPLICATION_PROTOCOL: Self
Application protocols or schemas are incompatible.
Sourcepub const APPLICATION_POLICY: Self
pub const APPLICATION_POLICY: Self
Local application policy rejected the peer.
Sourcepub const fn application_specific(value: u32) -> Option<Self>
pub const fn application_specific(value: u32) -> Option<Self>
Constructs an application-specific reason from the high-half namespace.
Trait Implementations§
Source§impl Clone for RejectionReason
impl Clone for RejectionReason
Source§fn clone(&self) -> RejectionReason
fn clone(&self) -> RejectionReason
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 RejectionReason
Source§impl Debug for RejectionReason
impl Debug for RejectionReason
impl Eq for RejectionReason
Source§impl PartialEq for RejectionReason
impl PartialEq for RejectionReason
impl StructuralPartialEq for RejectionReason
Auto Trait Implementations§
impl Freeze for RejectionReason
impl RefUnwindSafe for RejectionReason
impl Send for RejectionReason
impl Sync for RejectionReason
impl Unpin for RejectionReason
impl UnsafeUnpin for RejectionReason
impl UnwindSafe for RejectionReason
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