Enum sp_core::crypto::AddressUriError
source · pub enum AddressUriError {
InvalidCharacterInPhrase(InvalidCharacterInfo),
InvalidCharacterInPass(InvalidCharacterInfo),
MissingCharacterInHardPath(InvalidCharacterInfo),
MissingCharacterInSoftPath(InvalidCharacterInfo),
}
Expand description
Errors that are possible during parsing the address URI.
Variants§
InvalidCharacterInPhrase(InvalidCharacterInfo)
InvalidCharacterInPass(InvalidCharacterInfo)
MissingCharacterInHardPath(InvalidCharacterInfo)
MissingCharacterInSoftPath(InvalidCharacterInfo)
Implementations§
source§impl Error
impl Error
sourcepub fn in_phrase(input: &str, pos: usize) -> Self
pub fn in_phrase(input: &str, pos: usize) -> Self
Creates an instance of Error::InvalidCharacterInPhrase
using given parameters.
sourcepub fn in_pass(input: &str, pos: usize) -> Self
pub fn in_pass(input: &str, pos: usize) -> Self
Creates an instance of Error::InvalidCharacterInPass
using given parameters.
sourcepub fn in_hard_path(input: &str, pos: usize) -> Self
pub fn in_hard_path(input: &str, pos: usize) -> Self
Creates an instance of Error::MissingCharacterInHardPath
using given parameters.
sourcepub fn in_soft_path(input: &str, pos: usize) -> Self
pub fn in_soft_path(input: &str, pos: usize) -> Self
Creates an instance of Error::MissingCharacterInSoftPath
using given parameters.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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()
source§impl From<Error> for PublicError
impl From<Error> for PublicError
source§fn from(source: AddressUriError) -> Self
fn from(source: AddressUriError) -> Self
Converts to this type from the input type.
source§impl From<Error> for SecretStringError
impl From<Error> for SecretStringError
source§fn from(e: AddressUriError) -> Self
fn from(e: AddressUriError) -> Self
Converts to this type from the input type.
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.