Enum ruma_client_api::error::ErrorKind [−][src]
pub enum ErrorKind {
Show variants
Forbidden,
UnknownToken {
soft_logout: bool,
},
MissingToken,
BadJson,
NotJson,
NotFound,
LimitExceeded {
retry_after_ms: Option<Duration>,
},
Unknown,
Unrecognized,
Unauthorized,
UserDeactivated,
UserInUse,
InvalidUsername,
RoomInUse,
InvalidRoomState,
ThreepidInUse,
ThreepidNotFound,
ThreepidAuthFailed,
ThreepidDenied,
ServerNotTrusted,
UnsupportedRoomVersion,
IncompatibleRoomVersion {
room_version: RoomVersionId,
},
BadState,
GuestAccessForbidden,
CaptchaNeeded,
CaptchaInvalid,
MissingParam,
InvalidParam,
TooLarge,
Exclusive,
ResourceLimitExceeded {
admin_contact: String,
},
CannotLeaveServerNoticeRoom,
// some variants omitted
}Expand description
An enum for the error kind. Items may contain additional information.
Variants
M_FORBIDDEN
M_UNKNOWN_TOKEN
Show fields
M_MISSING_TOKEN
M_BAD_JSON
M_NOT_JSON
M_NOT_FOUND
M_LIMIT_EXCEEDED
Show fields
M_UNKNOWN
M_UNRECOGNIZED
M_UNAUTHORIZED
M_USER_DEACTIVATED
M_USER_IN_USE
M_INVALID_USERNAME
M_ROOM_IN_USE
M_INVALID_ROOM_STATE
M_THREEPID_IN_USE
M_THREEPID_NOT_FOUND
M_THREEPID_AUTH_FAILED
M_THREEPID_DENIED
M_SERVER_NOT_TRUSTED
M_UNSUPPORTED_ROOM_VERSION
M_INCOMPATIBLE_ROOM_VERSION
Show fields
Fields of IncompatibleRoomVersion
room_version: RoomVersionIdThe room’s version.
M_BAD_STATE
M_GUEST_ACCESS_FORBIDDEN
M_CAPTCHA_NEEDED
M_CAPTCHA_INVALID
M_MISSING_PARAM
M_INVALID_PARAM
M_TOO_LARGE
M_EXCLUSIVE
M_RESOURCE_LIMIT_EXCEEDED
Show fields
Fields of ResourceLimitExceeded
admin_contact: StringA URI giving a contact method for the server administrator.
M_CANNOT_LEAVE_SERVER_NOTICE_ROOM
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ErrorKindimpl UnwindSafe for ErrorKindBlanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more