Enum holochain::prelude::KitsuneP2pError
source · #[non_exhaustive]
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 + 'static, 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 + 'static, Global>)
Other
Implementations
sourceimpl KitsuneP2pError
impl KitsuneP2pError
sourcepub fn other(
e: impl Into<Box<dyn Error + Sync + Send + 'static, Global>>
) -> KitsuneP2pError
pub fn other(
e: impl Into<Box<dyn Error + Sync + Send + 'static, 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
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
sourcefn from(s: &str) -> KitsuneP2pError
fn from(s: &str) -> KitsuneP2pError
Converts to this type from the input type.
sourceimpl From<Error> for KitsuneP2pError
impl From<Error> for KitsuneP2pError
sourcefn from(source: Error) -> KitsuneP2pError
fn from(source: Error) -> KitsuneP2pError
Converts to this type from the input type.
sourceimpl From<Error> for KitsuneP2pError
impl From<Error> for KitsuneP2pError
sourcefn from(source: Error) -> KitsuneP2pError
fn from(source: Error) -> KitsuneP2pError
Converts to this type from the input type.
sourceimpl From<GhostError> for KitsuneP2pError
impl From<GhostError> for KitsuneP2pError
sourcefn from(source: GhostError) -> KitsuneP2pError
fn from(source: GhostError) -> KitsuneP2pError
Converts to this type from the input type.
sourceimpl From<HolochainP2pError> for KitsuneP2pError
impl From<HolochainP2pError> for KitsuneP2pError
sourcefn from(e: HolochainP2pError) -> KitsuneP2pError
fn from(e: HolochainP2pError) -> KitsuneP2pError
Converts to this type from the input type.
sourceimpl From<KitsuneError> for KitsuneP2pError
impl From<KitsuneError> for KitsuneP2pError
sourcefn from(source: KitsuneError) -> KitsuneP2pError
fn from(source: KitsuneError) -> KitsuneP2pError
Converts to this type from the input type.
sourceimpl From<KitsuneP2pError> for ConductorError
impl From<KitsuneP2pError> for ConductorError
sourcefn from(source: KitsuneP2pError) -> Self
fn from(source: KitsuneP2pError) -> Self
Converts to this type from the input type.
sourceimpl From<KitsuneP2pError> for HolochainP2pError
impl From<KitsuneP2pError> for HolochainP2pError
sourcefn from(e: KitsuneP2pError) -> HolochainP2pError
fn from(e: KitsuneP2pError) -> HolochainP2pError
Converts to this type from the input type.
sourceimpl From<String> for KitsuneP2pError
impl From<String> for KitsuneP2pError
sourcefn from(s: String) -> KitsuneP2pError
fn from(s: String) -> KitsuneP2pError
Converts to this type from the input type.
sourceimpl From<SystemTimeError> for KitsuneP2pError
impl From<SystemTimeError> for KitsuneP2pError
sourcefn from(source: SystemTimeError) -> KitsuneP2pError
fn from(source: SystemTimeError) -> KitsuneP2pError
Converts to this type from the input type.
sourceimpl From<TryFromIntError> for KitsuneP2pError
impl From<TryFromIntError> for KitsuneP2pError
sourcefn 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> Any for Twhere
T: Any + ?Sized,
impl<T> Any for Twhere
T: Any + ?Sized,
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove
Any::type_id_compat and use StdAny::type_id instead.
https://github.com/rust-lang/rust/issues/27745 Read more
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.
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<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
impl<T> FutureExt for T
impl<T> FutureExt for T
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
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.impl<T> Upcastable for Twhere
T: 'static + Any + Send + Sync,
impl<T> Upcastable for Twhere
T: 'static + Any + Send + Sync,
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
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;