Enum ockam::OckamError
source · [−]pub enum OckamError {
Show 22 variants
BareError,
VerifyFailed,
InvalidInternalState,
InvalidProof,
ConsistencyError,
ComplexEventsAreNotSupported,
EventIdDoesNotMatch,
IdentityIdDoesNotMatch,
EmptyChange,
ContactNotFound,
EventNotFound,
InvalidChainSequence,
InvalidEventId,
AttestationRequesterDoesNotMatch,
AttestationNonceDoesNotMatch,
InvalidHubResponse,
InvalidParameter,
SecureChannelVerificationFailed,
SecureChannelCannotBeAuthenticated,
NoSuchProtocol,
SystemAddressNotBound,
SystemInvalidConfiguration,
}
Expand description
An enumeration of different error types emitted by this library.
Most user code should use crate::Error
instead.
Variants
BareError
VerifyFailed
InvalidInternalState
InvalidProof
ConsistencyError
ComplexEventsAreNotSupported
EventIdDoesNotMatch
IdentityIdDoesNotMatch
EmptyChange
ContactNotFound
EventNotFound
InvalidChainSequence
InvalidEventId
AttestationRequesterDoesNotMatch
AttestationNonceDoesNotMatch
InvalidHubResponse
InvalidParameter
SecureChannelVerificationFailed
SecureChannelCannotBeAuthenticated
NoSuchProtocol
SystemAddressNotBound
SystemInvalidConfiguration
Trait Implementations
sourceimpl Clone for OckamError
impl Clone for OckamError
sourcefn clone(&self) -> OckamError
fn clone(&self) -> OckamError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OckamError
impl Debug for OckamError
sourceimpl Display for OckamError
impl Display for OckamError
sourceimpl Error for OckamError
impl Error for OckamError
1.30.0 · 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<OckamError> for Error
impl From<OckamError> for Error
sourcefn from(err: OckamError) -> Error
fn from(err: OckamError) -> Error
Converts to this type from the input type.
impl Copy for OckamError
Auto Trait Implementations
impl RefUnwindSafe for OckamError
impl Send for OckamError
impl Sync for OckamError
impl Unpin for OckamError
impl UnwindSafe for OckamError
Blanket Implementations
sourceimpl<D> AsyncTryClone for D where
D: Clone + Sync,
impl<D> AsyncTryClone for D where
D: Clone + Sync,
sourcefn async_try_clone<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<D, Error>> + Send + 'async_trait, Global>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
D: 'async_trait,
fn async_try_clone<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<D, Error>> + Send + 'async_trait, Global>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
D: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
Try cloning a object and return an Err
in case of failure.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
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<E> InstrumentError for E where
TracedError<E>: From<E>,
impl<E> InstrumentError for E where
TracedError<E>: From<E>,
type Instrumented = TracedError<E>
type Instrumented = TracedError<E>
The type of the wrapped error after instrumentation
sourcefn in_current_span(self) -> <E as InstrumentError>::Instrumented
fn in_current_span(self) -> <E as InstrumentError>::Instrumented
Instrument an Error by bundling it with a SpanTrace Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
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;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
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;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more