Struct ockam_core::AddressParseError
source · [−]pub struct AddressParseError { /* private fields */ }
Expand description
An error which is returned when address parsing from string fails.
Implementations
sourceimpl AddressParseError
impl AddressParseError
sourcepub fn new(kind: AddressParseErrorKind) -> Self
pub fn new(kind: AddressParseErrorKind) -> Self
Create new address parse error instance.
sourcepub fn kind(&self) -> &AddressParseErrorKind
pub fn kind(&self) -> &AddressParseErrorKind
Return the cause of the address parsing failure.
Trait Implementations
sourceimpl Debug for AddressParseError
impl Debug for AddressParseError
sourceimpl Display for AddressParseError
impl Display for AddressParseError
sourceimpl Error for AddressParseError
impl Error for AddressParseError
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()
Auto Trait Implementations
impl RefUnwindSafe for AddressParseError
impl Send for AddressParseError
impl Sync for AddressParseError
impl Unpin for AddressParseError
impl UnwindSafe for AddressParseError
Blanket Implementations
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