Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

Enum

ParseSeedQrError

pub enum ParseSeedQrError {
    InvalidUtf8(Utf8Error),
    InvalidWordIndex(ParseIntError),
    WordIndexOutOfRange(usize),
    InvalidMnemonic(Error),
}

Variants

InvalidUtf8(Utf8Error)

InvalidWordIndex(ParseIntError)

WordIndexOutOfRange(usize)

InvalidMnemonic(Error)

Trait Implementations

impl Clone for ParseSeedQrError

fn clone(&self) -> ParseSeedQrError

Returns a duplicate of the value. Read more
1.0.0

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl Debug for ParseSeedQrError

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

impl Display for ParseSeedQrError

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

impl Error for ParseSeedQrError

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

impl From<Error> for ParseSeedQrError

fn from(source: Bip39Error) -> Self

Converts to this type from the input type.

impl From<ParseIntError> for ParseSeedQrError

fn from(source: ParseIntError) -> Self

Converts to this type from the input type.

impl From<Utf8Error> for ParseSeedQrError

fn from(source: Utf8Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations

impl Freeze for ParseSeedQrError

impl RefUnwindSafe for ParseSeedQrError

impl Send for ParseSeedQrError

impl Sync for ParseSeedQrError

impl Unpin for ParseSeedQrError

impl UnsafeUnpin for ParseSeedQrError

impl UnwindSafe for ParseSeedQrError