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
sourceimpl From<Error> for Error
impl From<Error> for Error
sourcefn from(error: HyperError) -> Error
fn from(error: HyperError) -> Error
Converts to this type from the input type.
sourceimpl From<Error> for Error
impl From<Error> for Error
sourcefn from(error: RumaApiError) -> Error
fn from(error: RumaApiError) -> Error
Converts to this type from the input type.
sourceimpl From<Error> for Error
impl From<Error> for Error
sourcefn from(error: SerdeJsonError) -> Error
fn from(error: SerdeJsonError) -> Error
Converts to this type from the input type.
sourceimpl From<Error> for Error
impl From<Error> for Error
sourcefn from(error: SerdeUrlEncodedSerializeError) -> Error
fn from(error: SerdeUrlEncodedSerializeError) -> Error
Converts to this type from the input type.
sourceimpl From<InvalidUri> for Error
impl From<InvalidUri> for Error
sourcefn from(error: InvalidUri) -> Error
fn from(error: InvalidUri) -> Error
Converts to this type from the input type.
sourceimpl From<ParseError> for Error
impl From<ParseError> for Error
sourcefn from(error: ParseError) -> Error
fn from(error: ParseError) -> Error
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more