pub enum SwishClientError {
Swish(RequestError),
Parse(String),
Http(Error),
Uri(InvalidUri),
Io(Error),
Json(Error),
ErrorCollection(ErrorCollection),
}
Variants§
Swish(RequestError)
Parse(String)
Http(Error)
Uri(InvalidUri)
Io(Error)
Json(Error)
ErrorCollection(ErrorCollection)
Trait Implementations§
Source§impl Debug for SwishClientError
impl Debug for SwishClientError
Source§impl Display for SwishClientError
impl Display for SwishClientError
Source§impl From<Error> for SwishClientError
impl From<Error> for SwishClientError
Source§fn from(err: Error) -> SwishClientError
fn from(err: Error) -> SwishClientError
Converts to this type from the input type.
Source§impl From<Error> for SwishClientError
impl From<Error> for SwishClientError
Source§fn from(err: Error) -> SwishClientError
fn from(err: Error) -> SwishClientError
Converts to this type from the input type.
Source§impl From<Error> for SwishClientError
impl From<Error> for SwishClientError
Source§fn from(err: Error) -> SwishClientError
fn from(err: Error) -> SwishClientError
Converts to this type from the input type.
Source§impl From<InvalidUri> for SwishClientError
impl From<InvalidUri> for SwishClientError
Source§fn from(err: InvalidUri) -> SwishClientError
fn from(err: InvalidUri) -> SwishClientError
Converts to this type from the input type.
Source§impl From<RequestError> for SwishClientError
impl From<RequestError> for SwishClientError
Source§fn from(error: RequestError) -> SwishClientError
fn from(error: RequestError) -> SwishClientError
Converts to this type from the input type.
Source§impl From<Vec<SwishClientError>> for SwishClientError
impl From<Vec<SwishClientError>> for SwishClientError
Source§fn from(error: ErrorCollection) -> SwishClientError
fn from(error: ErrorCollection) -> SwishClientError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SwishClientError
impl !RefUnwindSafe for SwishClientError
impl Send for SwishClientError
impl Sync for SwishClientError
impl Unpin for SwishClientError
impl !UnwindSafe for SwishClientError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more