Enum breez_sdk_liquid::lightning::offers::parse::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<'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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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> 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