#[non_exhaustive]pub enum KitsuneErrorKind {
Unit,
TimedOut(String),
Closed,
Unauthorized,
BadInput(Box<dyn Error + Send + Sync>, String),
Other(Box<dyn Error + Send + Sync>),
}
Expand description
Error related to remote communication.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unit
Temp error type for internal logic.
TimedOut(String)
The operation timed out.
Closed
This object is closed, calls on it are invalid.
The operation is unauthorized by the host.
BadInput(Box<dyn Error + Send + Sync>, String)
Bad external input. Can’t proceed, but we don’t have to shut everything down, either.
Other(Box<dyn Error + Send + Sync>)
Unspecified error.
Trait Implementations§
source§impl Debug for KitsuneErrorKind
impl Debug for KitsuneErrorKind
source§impl Display for KitsuneErrorKind
impl Display for KitsuneErrorKind
source§impl Error for KitsuneErrorKind
impl Error for KitsuneErrorKind
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<KitsuneErrorKind> for KitsuneError
impl From<KitsuneErrorKind> for KitsuneError
source§fn from(k: KitsuneErrorKind) -> Self
fn from(k: KitsuneErrorKind) -> Self
Converts to this type from the input type.
source§impl PartialEq for KitsuneErrorKind
impl PartialEq for KitsuneErrorKind
Auto Trait Implementations§
impl Freeze for KitsuneErrorKind
impl !RefUnwindSafe for KitsuneErrorKind
impl Send for KitsuneErrorKind
impl Sync for KitsuneErrorKind
impl Unpin for KitsuneErrorKind
impl !UnwindSafe for KitsuneErrorKind
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 moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.