pub enum VanityError {
FileError(Error),
KeysAndAddressError(&'static str),
VanityGeneratorError(&'static str),
FastModeEnabled,
InputNotBase58,
InvalidRegex,
RegexNotBase58,
RequestTooLong,
MissingFeatureEthereum,
MissingFeatureSolana,
}Expand description
A unified error type that encapsulates all possible errors in the btc-vanity application.
Variants§
FileError(Error)
KeysAndAddressError(&'static str)
VanityGeneratorError(&'static str)
FastModeEnabled
InputNotBase58
InvalidRegex
RegexNotBase58
RequestTooLong
MissingFeatureEthereum
MissingFeatureSolana
Trait Implementations§
Source§impl Debug for VanityError
impl Debug for VanityError
Source§impl Display for VanityError
impl Display for VanityError
Source§impl Error for VanityError
impl Error for VanityError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<Error> for VanityError
impl From<Error> for VanityError
Source§impl From<KeysAndAddressError> for VanityError
impl From<KeysAndAddressError> for VanityError
Source§fn from(keys_and_address_err: KeysAndAddressError) -> Self
fn from(keys_and_address_err: KeysAndAddressError) -> Self
Converts to this type from the input type.
Source§impl From<VanityGeneratorError> for VanityError
impl From<VanityGeneratorError> for VanityError
Source§fn from(vanity_err: VanityGeneratorError) -> Self
fn from(vanity_err: VanityGeneratorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VanityError
impl !RefUnwindSafe for VanityError
impl Send for VanityError
impl Sync for VanityError
impl Unpin for VanityError
impl UnsafeUnpin for VanityError
impl !UnwindSafe for VanityError
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