Enum ockam_core::AddressParseErrorKind
source · [−]#[non_exhaustive]
pub enum AddressParseErrorKind {
InvalidType(ParseIntError),
MultipleSep,
}
Expand description
Enum to store the cause of an address parsing failure.
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.
InvalidType(ParseIntError)
Unable to parse address num in the address string.
MultipleSep
Address string has more than one ‘#’ separator.
Trait Implementations
sourceimpl Clone for AddressParseErrorKind
impl Clone for AddressParseErrorKind
sourcefn clone(&self) -> AddressParseErrorKind
fn clone(&self) -> AddressParseErrorKind
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 AddressParseErrorKind
impl Debug for AddressParseErrorKind
sourceimpl PartialEq<AddressParseErrorKind> for AddressParseErrorKind
impl PartialEq<AddressParseErrorKind> for AddressParseErrorKind
sourcefn eq(&self, other: &AddressParseErrorKind) -> bool
fn eq(&self, other: &AddressParseErrorKind) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AddressParseErrorKind) -> bool
fn ne(&self, other: &AddressParseErrorKind) -> bool
This method tests for !=
.
impl Eq for AddressParseErrorKind
impl StructuralEq for AddressParseErrorKind
impl StructuralPartialEq for AddressParseErrorKind
Auto Trait Implementations
impl RefUnwindSafe for AddressParseErrorKind
impl Send for AddressParseErrorKind
impl Sync for AddressParseErrorKind
impl Unpin for AddressParseErrorKind
impl UnwindSafe for AddressParseErrorKind
Blanket Implementations
sourceimpl<D> AsyncTryClone for D where
D: Clone + Sync,
impl<D> AsyncTryClone for D where
D: Clone + Sync,
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>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more