pub struct MtgApiError { /* private fields */ }Expand description
Errors encountered by the Client
Implementations§
Source§impl MtgApiError
impl MtgApiError
pub fn kind(&self) -> MtgApiErrorKind
Trait Implementations§
Source§impl Debug for MtgApiError
impl Debug for MtgApiError
Source§impl Display for MtgApiError
impl Display for MtgApiError
Source§impl Fail for MtgApiError
impl Fail for MtgApiError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreSource§impl From<Context<MtgApiErrorKind>> for MtgApiError
impl From<Context<MtgApiErrorKind>> for MtgApiError
Source§fn from(inner: Context<MtgApiErrorKind>) -> MtgApiError
fn from(inner: Context<MtgApiErrorKind>) -> MtgApiError
Converts to this type from the input type.
Source§impl From<MtgApiErrorKind> for MtgApiError
impl From<MtgApiErrorKind> for MtgApiError
Source§fn from(kind: MtgApiErrorKind) -> MtgApiError
fn from(kind: MtgApiErrorKind) -> MtgApiError
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for MtgApiError
impl !RefUnwindSafe for MtgApiError
impl Send for MtgApiError
impl Sync for MtgApiError
impl Unpin for MtgApiError
impl !UnwindSafe for MtgApiError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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