Enum sp_core::crypto::SecretStringError
source · [−]pub enum SecretStringError {
InvalidFormat,
InvalidPhrase,
InvalidPassword,
InvalidSeed,
InvalidSeedLength,
InvalidPath,
}
Expand description
An error with the interpretation of a secret.
Variants
InvalidFormat
The overall format was invalid (e.g. the seed phrase contained symbols).
InvalidPhrase
The seed phrase provided is not a valid BIP39 phrase.
InvalidPassword
The supplied password was invalid.
InvalidSeed
The seed is invalid (bad content).
InvalidSeedLength
The seed has an invalid length.
InvalidPath
The derivation path was invalid (e.g. contains soft junctions when they are not supported).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SecretStringError
impl Send for SecretStringError
impl Sync for SecretStringError
impl Unpin for SecretStringError
impl UnwindSafe for SecretStringError
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
The counterpart to unchecked_from
.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more