Skip to content

Enum permissions::GateDenial

zaun_community_protocol::permissions::GateDenial · Enum

pub enum GateDenial { … }

Why the gate refused a command.

NOT_BOUND: no binding (unbound connection, or a member that left).

CONFLICT: an unbound-only command on a bound connection.

PENDING_APPROVAL.

SUSPENDED.

BANNED.

pub const fn conflict_reason(self) -> Option<&'static str>

The reason of the CONFLICT body, for GateDenial::AlreadyBound.

pub const fn error_code(self) -> ErrorCode

The response code.

Clone, Copy, Debug, Eq, Hash, PartialEq, StructuralPartialEq

Full rustdoc page