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§
source§impl Debug for KitsuneP2pError
impl Debug for KitsuneP2pError
source§impl Display for KitsuneP2pError
impl Display for KitsuneP2pError
source§impl Error for KitsuneP2pError
impl Error for KitsuneP2pError
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<&str> for KitsuneP2pError
impl From<&str> for KitsuneP2pError
source§impl From<Error> for KitsuneP2pError
impl From<Error> for KitsuneP2pError
source§impl From<Error> for KitsuneP2pError
impl From<Error> for KitsuneP2pError
source§impl From<GhostError> for KitsuneP2pError
impl From<GhostError> for KitsuneP2pError
source§fn from(source: GhostError) -> Self
fn from(source: GhostError) -> Self
Converts to this type from the input type.
source§impl From<KitsuneError> for KitsuneP2pError
impl From<KitsuneError> for KitsuneP2pError
source§fn from(source: KitsuneError) -> Self
fn from(source: KitsuneError) -> Self
Converts to this type from the input type.
source§impl From<String> for KitsuneP2pError
impl From<String> for KitsuneP2pError
source§impl From<SystemTimeError> for KitsuneP2pError
impl From<SystemTimeError> for KitsuneP2pError
source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Converts to this type from the input type.
source§impl From<TryFromIntError> for KitsuneP2pError
impl From<TryFromIntError> for KitsuneP2pError
source§fn 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§
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
§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>
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>
§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 more§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).§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.