Enum holochain::prelude::KitsuneP2pError
source · pub enum KitsuneP2pError {
GhostError(GhostError),
KitsuneError(KitsuneError),
RoutingSpaceError(Arc<KitsuneSpace>),
RoutingAgentError(Arc<KitsuneAgent>),
DecodingError(Box<str, Global>),
StdIoError(Error),
Reqwest(Error),
Bootstrap(Box<str, Global>),
SystemTime(SystemTimeError),
TryFromInt(TryFromIntError),
Other(Box<dyn Error + Sync + Send, Global>),
}
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, Global>)
DecodingError
StdIoError(Error)
std::io::Error
Reqwest(Error)
Reqwest crate.
Bootstrap(Box<str, Global>)
Bootstrap call failed.
SystemTime(SystemTimeError)
SystemTime call failed.
TryFromInt(TryFromIntError)
Integer casting failed.
Other(Box<dyn Error + Sync + Send, Global>)
Other
Implementations§
source§impl KitsuneP2pError
impl KitsuneP2pError
sourcepub fn other(
e: impl Into<Box<dyn Error + Sync + Send, Global>>
) -> KitsuneP2pError
pub fn other( e: impl Into<Box<dyn Error + Sync + Send, Global>> ) -> KitsuneP2pError
promote a custom error type to a KitsuneP2pError
sourcepub fn decoding_error(s: String) -> KitsuneP2pError
pub fn decoding_error(s: String) -> KitsuneP2pError
generate a decoding error from a string
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§fn from(s: &str) -> KitsuneP2pError
fn from(s: &str) -> KitsuneP2pError
Converts to this type from the input type.
source§impl From<Error> for KitsuneP2pError
impl From<Error> for KitsuneP2pError
source§fn from(source: Error) -> KitsuneP2pError
fn from(source: Error) -> KitsuneP2pError
Converts to this type from the input type.
source§impl From<Error> for KitsuneP2pError
impl From<Error> for KitsuneP2pError
source§fn from(source: Error) -> KitsuneP2pError
fn from(source: Error) -> KitsuneP2pError
Converts to this type from the input type.
source§impl From<GhostError> for KitsuneP2pError
impl From<GhostError> for KitsuneP2pError
source§fn from(source: GhostError) -> KitsuneP2pError
fn from(source: GhostError) -> KitsuneP2pError
Converts to this type from the input type.
source§impl From<HolochainP2pError> for KitsuneP2pError
impl From<HolochainP2pError> for KitsuneP2pError
source§fn from(e: HolochainP2pError) -> KitsuneP2pError
fn from(e: HolochainP2pError) -> KitsuneP2pError
Converts to this type from the input type.
source§impl From<KitsuneError> for KitsuneP2pError
impl From<KitsuneError> for KitsuneP2pError
source§fn from(source: KitsuneError) -> KitsuneP2pError
fn from(source: KitsuneError) -> KitsuneP2pError
Converts to this type from the input type.
source§impl From<KitsuneP2pError> for ConductorError
impl From<KitsuneP2pError> for ConductorError
source§fn from(source: KitsuneP2pError) -> Self
fn from(source: KitsuneP2pError) -> Self
Converts to this type from the input type.
source§impl From<KitsuneP2pError> for HolochainP2pError
impl From<KitsuneP2pError> for HolochainP2pError
source§fn from(e: KitsuneP2pError) -> HolochainP2pError
fn from(e: KitsuneP2pError) -> HolochainP2pError
Converts to this type from the input type.
source§impl From<String> for KitsuneP2pError
impl From<String> for KitsuneP2pError
source§fn from(s: String) -> KitsuneP2pError
fn from(s: String) -> KitsuneP2pError
Converts to this type from the input type.
source§impl From<SystemTimeError> for KitsuneP2pError
impl From<SystemTimeError> for KitsuneP2pError
source§fn from(source: SystemTimeError) -> KitsuneP2pError
fn from(source: SystemTimeError) -> KitsuneP2pError
Converts to this type from the input type.
source§impl From<TryFromIntError> for KitsuneP2pError
impl From<TryFromIntError> for KitsuneP2pError
source§fn from(source: TryFromIntError) -> KitsuneP2pError
fn from(source: TryFromIntError) -> KitsuneP2pError
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§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
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.§impl<T> Upcastable for Twhere
T: Any + Send + Sync + 'static,
impl<T> Upcastable for Twhere T: Any + Send + Sync + 'static,
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref