Enum permissions::GateDenial
zaun_community_protocol::permissions::GateDenial · Enum
pub enum GateDenial { … }Why the gate refused a command.
Variants
Section titled “Variants”NotBound
Section titled “NotBound”NOT_BOUND: no binding (unbound connection, or a member that left).
AlreadyBound
Section titled “AlreadyBound”CONFLICT: an unbound-only command on a bound connection.
PendingApproval
Section titled “PendingApproval”PENDING_APPROVAL.
Suspended
Section titled “Suspended”SUSPENDED.
Banned
Section titled “Banned”BANNED.
Methods
Section titled “Methods”conflict_reason
Section titled “conflict_reason”pub const fn conflict_reason(self) -> Option<&'static str>The reason of the CONFLICT body, for GateDenial::AlreadyBound.
error_code
Section titled “error_code”pub const fn error_code(self) -> ErrorCodeThe response code.
Trait implementations
Section titled “Trait implementations”Clone, Copy, Debug, Eq, Hash, PartialEq, StructuralPartialEq