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
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>,