Enum ruma_client::Error

source ·
pub enum Error {
    AuthenticationRequired,
    Hyper(HyperError),
    Uri(InvalidUri),
    Url(ParseError),
    RumaApi(RumaApiError),
    SerdeJson(SerdeJsonError),
    SerdeUrlEncodedSerialize(SerdeUrlEncodedSerializeError),
}
Expand description

An error that occurs during client operations.

Variants

AuthenticationRequired

Queried endpoint requires authentication but was called on an anonymous client

Hyper(HyperError)

An error at the HTTP layer.

Uri(InvalidUri)

An error when parsing a string as a URI.

Url(ParseError)

An error when parsing a string as a URL.

RumaApi(RumaApiError)

An error converting between ruma_client_api types and Hyper types.

SerdeJson(SerdeJsonError)

An error when serializing or deserializing a JSON value.

SerdeUrlEncodedSerialize(SerdeUrlEncodedSerializeError)

An error when serializing a query string value.

Trait Implementations

Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.