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
Expand description
M_FORBIDDEN
Expand description
M_UNKNOWN_TOKEN
Show fields
Expand description
M_MISSING_TOKEN
Expand description
M_BAD_JSON
Expand description
M_NOT_JSON
Expand description
M_NOT_FOUND
Expand description
M_LIMIT_EXCEEDED
Show fields
Expand description
M_UNKNOWN
Expand description
M_UNRECOGNIZED
Expand description
M_UNAUTHORIZED
Expand description
M_USER_DEACTIVATED
Expand description
M_USER_IN_USE
Expand description
M_INVALID_USERNAME
Expand description
M_ROOM_IN_USE
Expand description
M_INVALID_ROOM_STATE
Expand description
M_THREEPID_IN_USE
Expand description
M_THREEPID_NOT_FOUND
Expand description
M_THREEPID_AUTH_FAILED
Expand description
M_THREEPID_DENIED
Expand description
M_SERVER_NOT_TRUSTED
Expand description
M_UNSUPPORTED_ROOM_VERSION
Expand description
M_INCOMPATIBLE_ROOM_VERSION
Show fields
Fields of IncompatibleRoomVersion
room_version: RoomVersionIdExpand description
The room’s version.
Expand description
M_BAD_STATE
Expand description
M_GUEST_ACCESS_FORBIDDEN
Expand description
M_CAPTCHA_NEEDED
Expand description
M_CAPTCHA_INVALID
Expand description
M_MISSING_PARAM
Expand description
M_INVALID_PARAM
Expand description
M_TOO_LARGE
Expand description
M_EXCLUSIVE
Expand description
M_RESOURCE_LIMIT_EXCEEDED
Show fields
Fields of ResourceLimitExceeded
admin_contact: StringExpand description
A URI giving a contact method for the server administrator.
Expand description
M_CANNOT_LEAVE_SERVER_NOTICE_ROOM
Trait Implementations
impl<'de> Deserialize<'de> for ErrorKind[src]
impl<'de> Deserialize<'de> for ErrorKind[src]fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
impl Eq for ErrorKind[src]
impl StructuralEq for ErrorKind[src]
impl StructuralPartialEq for ErrorKind[src]
Auto Trait Implementations
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
pub fn equivalent(&self, key: &K) -> bool[src]Compare self to key and return true if they are equal.
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,