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
}An enum for the error kind. Items may contain additional information.
Variants
M_FORBIDDEN
M_UNKNOWN_TOKEN
Fields of UnknownToken
M_MISSING_TOKEN
M_BAD_JSON
M_NOT_JSON
M_NOT_FOUND
M_LIMIT_EXCEEDED
Fields of LimitExceeded
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
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
Fields of ResourceLimitExceeded
admin_contact: StringA URI giving a contact method for the server administrator.
M_CANNOT_LEAVE_SERVER_NOTICE_ROOM
Trait Implementations
impl AsRef<str> for ErrorKind[src]
impl Clone for ErrorKind[src]
impl Debug for ErrorKind[src]
impl<'de> Deserialize<'de> for ErrorKind[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
impl Display for ErrorKind[src]
impl Eq for ErrorKind[src]
impl PartialEq<ErrorKind> for ErrorKind[src]
impl Serialize 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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,