pub enum GateDenial {
NotBound,
AlreadyBound,
PendingApproval,
Suspended,
Banned,
}Expand description
Why the gate refused a command.
Variants§
NotBound
NOT_BOUND: no binding (unbound connection, or a member that left).
AlreadyBound
CONFLICT: an unbound-only command on a bound connection.
PendingApproval
PENDING_APPROVAL.
Suspended
SUSPENDED.
Banned
BANNED.
Implementations§
Source§impl GateDenial
impl GateDenial
Sourcepub const fn conflict_reason(self) -> Option<&'static str>
pub const fn conflict_reason(self) -> Option<&'static str>
The reason of the CONFLICT body, for GateDenial::AlreadyBound.
Sourcepub const fn error_code(self) -> ErrorCode
pub const fn error_code(self) -> ErrorCode
The response code.
Trait Implementations§
Source§impl Clone for GateDenial
impl Clone for GateDenial
Source§fn clone(&self) -> GateDenial
fn clone(&self) -> GateDenial
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 GateDenial
Source§impl Debug for GateDenial
impl Debug for GateDenial
impl Eq for GateDenial
Source§impl Hash for GateDenial
impl Hash for GateDenial
Source§impl PartialEq for GateDenial
impl PartialEq for GateDenial
impl StructuralPartialEq for GateDenial
Auto Trait Implementations§
impl Freeze for GateDenial
impl RefUnwindSafe for GateDenial
impl Send for GateDenial
impl Sync for GateDenial
impl Unpin for GateDenial
impl UnsafeUnpin for GateDenial
impl UnwindSafe for GateDenial
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