Enum ockam::OckamError
source · pub enum OckamError {
InvalidHubResponse,
InvalidParameter,
NoSuchProtocol,
SystemAddressNotBound,
SystemInvalidConfiguration,
UnknownForwarderDestinationAddress,
UnknownForwarderNextHopAddress,
InvalidHex,
}
Expand description
An enumeration of different error types emitted by this library.
Most user code should use crate::Error
instead.
Variants§
InvalidHubResponse
InvalidParameter
NoSuchProtocol
SystemAddressNotBound
SystemInvalidConfiguration
UnknownForwarderDestinationAddress
UnknownForwarderNextHopAddress
InvalidHex
Trait Implementations§
source§impl Clone for OckamError
impl Clone for OckamError
source§fn clone(&self) -> OckamError
fn clone(&self) -> OckamError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OckamError
impl Debug for OckamError
source§impl Display for OckamError
impl Display for OckamError
source§impl Error for OckamError
impl Error for OckamError
1.30.0 · 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<OckamError> for Error
impl From<OckamError> for Error
source§fn 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§
source§impl<D> AsyncTryClone for D
impl<D> AsyncTryClone for D
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
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<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
§type Instrumented = TracedError<E>
type Instrumented = TracedError<E>
The type of the wrapped error after instrumentation
source§fn 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