Struct ockam_core::AddressParseError
source · pub struct AddressParseError { /* private fields */ }
Expand description
An error which is returned when address parsing from string fails.
Implementations§
source§impl 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§
source§impl Debug for AddressParseError
impl Debug for AddressParseError
source§impl Display for AddressParseError
impl Display for AddressParseError
source§impl Error for AddressParseError
impl Error for AddressParseError
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()
Auto Trait Implementations§
impl Freeze for AddressParseError
impl RefUnwindSafe for AddressParseError
impl Send for AddressParseError
impl Sync for AddressParseError
impl Unpin for AddressParseError
impl UnwindSafe for AddressParseError
Blanket Implementations§
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