Enum cfx_addr::OptionError
source · pub enum OptionError {
ParseError(String),
AddressTypeMismatch {
expected: AddressType,
got: Result<AddressType, ()>,
},
InvalidAddressType(String),
}
Variants§
ParseError(String)
The option string isn’t in a valid format.
AddressTypeMismatch
The address type specified in option doesn’t match the decoded address. The got can be an Err(()) because decoded address may have invalid address type.
InvalidAddressType(String)
The address type is invalid.
Trait Implementations§
source§impl Clone for OptionError
impl Clone for OptionError
source§fn clone(&self) -> OptionError
fn clone(&self) -> OptionError
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 OptionError
impl Debug for OptionError
source§impl PartialEq for OptionError
impl PartialEq for OptionError
source§fn eq(&self, other: &OptionError) -> bool
fn eq(&self, other: &OptionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for OptionError
impl StructuralPartialEq for OptionError
Auto Trait Implementations§
impl RefUnwindSafe for OptionError
impl Send for OptionError
impl Sync for OptionError
impl Unpin for OptionError
impl UnwindSafe for OptionError
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