Enum error_code::ErrorCode
zaun_community_protocol::error_code::ErrorCode · Enum
pub enum ErrorCode { … }A response error code. Clients branch on this, never on the message text.
Variants
Section titled “Variants”BadRequest
Section titled “BadRequest”PayloadTooLarge
Section titled “PayloadTooLarge”UnsupportedVersion
Section titled “UnsupportedVersion”UnsupportedCommand
Section titled “UnsupportedCommand”UnsupportedFeature
Section titled “UnsupportedFeature”HelloRequired
Section titled “HelloRequired”NotBound
Section titled “NotBound”WrongCommunity
Section titled “WrongCommunity”HostNotAuthorized
Section titled “HostNotAuthorized”Forbidden
Section titled “Forbidden”PendingApproval
Section titled “PendingApproval”Suspended
Section titled “Suspended”AdmissionClosed
Section titled “AdmissionClosed”NotFound
Section titled “NotFound”Conflict
Section titled “Conflict”InvalidSignature
Section titled “InvalidSignature”InviteInvalid
Section titled “InviteInvalid”SlowmodeActive
Section titled “SlowmodeActive”RateLimited
Section titled “RateLimited”TimedOut
Section titled “TimedOut”Banned
Section titled “Banned”ResyncRequired
Section titled “ResyncRequired”Internal
Section titled “Internal”Methods
Section titled “Methods”is_recorded
Section titled “is_recorded”pub const fn is_recorded(self) -> boolWhether a response with this code is stored as the idempotency record: every
error except the transient ones, which may be retried with the same request_id.
Trait implementations
Section titled “Trait implementations”Clone, Copy, Debug, Deserialize<'de>, Eq, Hash, PartialEq, Serialize, StructuralPartialEq