Enum wicrs_server::ApiError[][src]

pub enum ApiError {
    Muted,
    Banned,
    HubNotFound,
    ChannelNotFound,
    MissingHubPermission(HubPermission),
    MissingChannelPermission(ChannelPermission),
    NotInHub,
    UserNotFound,
    MemberNotFound,
    MessageNotFound,
    NotAuthenticated,
    GroupNotFound,
    InvalidName,
    UnexpectedServerArg,
    MessageTooBig,
    InvalidMessage,
    Other(Stringu16),
    Auth(AuthError),
    Data(DataError),
    Io(Error),
}

General errors that can occur when using the WICRS API.

Variants

Muted
Banned
HubNotFound
ChannelNotFound
MissingHubPermission(HubPermission)
MissingChannelPermission(ChannelPermission)
NotInHub
UserNotFound
MemberNotFound
MessageNotFound
NotAuthenticated
GroupNotFound
InvalidName
UnexpectedServerArg
MessageTooBig
InvalidMessage
Other(Stringu16)
Auth(AuthError)
Data(DataError)
Io(Error)

Trait Implementations

impl Debug for ApiError[src]

impl<'de> Deserialize<'de> for ApiError[src]

impl Display for ApiError[src]

impl Error for ApiError[src]

impl From<AuthError> for ApiError[src]

impl From<DataError> for ApiError[src]

impl From<Error> for ApiError[src]

impl Serialize for ApiError[src]

Auto Trait Implementations

impl !RefUnwindSafe for ApiError

impl Send for ApiError

impl Sync for ApiError

impl Unpin for ApiError

impl !UnwindSafe for ApiError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,