Enum kitsune_p2p::KitsuneP2pError
source · [−]#[non_exhaustive]
pub enum KitsuneP2pError {
GhostError(GhostError),
KitsuneError(KitsuneError),
RoutingSpaceError(Arc<KitsuneSpace>),
RoutingAgentError(Arc<KitsuneAgent>),
DecodingError(Box<str>),
StdIoError(Error),
Reqwest(Error),
Bootstrap(Box<str>),
SystemTime(SystemTimeError),
TryFromInt(TryFromIntError),
Other(Box<dyn Error + Send + Sync>),
}
Expand description
KitsuneP2p Error Type.
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.
GhostError(GhostError)
GhostError
KitsuneError(KitsuneError)
Base Kitsune Error
RoutingSpaceError(Arc<KitsuneSpace>)
RoutingSpaceError
RoutingAgentError(Arc<KitsuneAgent>)
RoutingAgentError
DecodingError(Box<str>)
DecodingError
StdIoError(Error)
std::io::Error
Reqwest(Error)
Reqwest crate.
Bootstrap(Box<str>)
Bootstrap call failed.
SystemTime(SystemTimeError)
SystemTime call failed.
TryFromInt(TryFromIntError)
Integer casting failed.
Other(Box<dyn Error + Send + Sync>)
Other
Implementations
Trait Implementations
sourceimpl Debug for KitsuneP2pError
impl Debug for KitsuneP2pError
sourceimpl Display for KitsuneP2pError
impl Display for KitsuneP2pError
sourceimpl Error for KitsuneP2pError
impl Error for KitsuneP2pError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<&str> for KitsuneP2pError
impl From<&str> for KitsuneP2pError
sourceimpl From<Error> for KitsuneP2pError
impl From<Error> for KitsuneP2pError
sourceimpl From<Error> for KitsuneP2pError
impl From<Error> for KitsuneP2pError
sourceimpl From<GhostError> for KitsuneP2pError
impl From<GhostError> for KitsuneP2pError
sourcefn from(source: GhostError) -> Self
fn from(source: GhostError) -> Self
Converts to this type from the input type.
sourceimpl From<KitsuneError> for KitsuneP2pError
impl From<KitsuneError> for KitsuneP2pError
sourcefn from(source: KitsuneError) -> Self
fn from(source: KitsuneError) -> Self
Converts to this type from the input type.
sourceimpl From<String> for KitsuneP2pError
impl From<String> for KitsuneP2pError
sourceimpl From<SystemTimeError> for KitsuneP2pError
impl From<SystemTimeError> for KitsuneP2pError
sourcefn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Converts to this type from the input type.
sourceimpl From<TryFromIntError> for KitsuneP2pError
impl From<TryFromIntError> for KitsuneP2pError
sourcefn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for KitsuneP2pError
impl Send for KitsuneP2pError
impl Sync for KitsuneP2pError
impl Unpin for KitsuneP2pError
impl !UnwindSafe for KitsuneP2pError
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
impl<T> FutureExt for T
impl<T> FutureExt for T
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
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 morefn 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).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.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.