Enum Bolt12ParseError
pub enum Bolt12ParseError {
InvalidContinuation,
InvalidBech32Hrp,
Bech32(Error),
Decode(DecodeError),
InvalidSemantics(Bolt12SemanticError),
InvalidSignature(Error),
}
Expand description
Error when parsing a bech32 encoded message using str::parse
.
Variants§
InvalidContinuation
The bech32 encoding does not conform to the BOLT 12 requirements for continuing messages across multiple parts (i.e., ‘+’ followed by whitespace).
InvalidBech32Hrp
The bech32 encoding’s human-readable part does not match what was expected for the message being parsed.
Bech32(Error)
The string could not be bech32 decoded.
Decode(DecodeError)
The bech32 decoded string could not be decoded as the expected message type.
InvalidSemantics(Bolt12SemanticError)
The parsed message has invalid semantics.
InvalidSignature(Error)
The parsed message has an invalid signature.
Trait Implementations§
§impl Clone for Bolt12ParseError
impl Clone for Bolt12ParseError
§fn clone(&self) -> Bolt12ParseError
fn clone(&self) -> Bolt12ParseError
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 more§impl Debug for Bolt12ParseError
impl Debug for Bolt12ParseError
§impl From<Bolt12SemanticError> for Bolt12ParseError
impl From<Bolt12SemanticError> for Bolt12ParseError
§fn from(error: Bolt12SemanticError) -> Bolt12ParseError
fn from(error: Bolt12SemanticError) -> Bolt12ParseError
Converts to this type from the input type.
§impl From<DecodeError> for Bolt12ParseError
impl From<DecodeError> for Bolt12ParseError
§fn from(error: DecodeError) -> Bolt12ParseError
fn from(error: DecodeError) -> Bolt12ParseError
Converts to this type from the input type.
§impl From<Error> for Bolt12ParseError
impl From<Error> for Bolt12ParseError
§fn from(error: Error) -> Bolt12ParseError
fn from(error: Error) -> Bolt12ParseError
Converts to this type from the input type.
§impl From<Error> for Bolt12ParseError
impl From<Error> for Bolt12ParseError
§fn from(error: Error) -> Bolt12ParseError
fn from(error: Error) -> Bolt12ParseError
Converts to this type from the input type.
§impl PartialEq for Bolt12ParseError
impl PartialEq for Bolt12ParseError
impl StructuralPartialEq for Bolt12ParseError
Auto Trait Implementations§
impl Freeze for Bolt12ParseError
impl RefUnwindSafe for Bolt12ParseError
impl Send for Bolt12ParseError
impl Sync for Bolt12ParseError
impl Unpin for Bolt12ParseError
impl UnwindSafe for Bolt12ParseError
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any
.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any
.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request