pub enum ParseError {
InvalidBolt12(Bolt12ParseError),
WrongNetwork,
InvalidInstructions(&'static str),
UnknownReceiveInstructions,
UnknownRequiredParameter,
InstructionsExpired,
}Expand description
An error when parsing payment instructions into ReceiveInstructions.
Variants§
InvalidBolt12(Bolt12ParseError)
An invalid lightning BOLT 12 refund was encountered
WrongNetwork
The receive instructions encoded instructions for a network other than the one specified.
InvalidInstructions(&'static str)
The instructions were invalid due to a semantic error.
A developer-readable error string is provided, though you may or may not wish to provide this directly to users.
UnknownReceiveInstructions
The receive instructions did not appear to match any known form of receive instructions.
UnknownRequiredParameter
The BIP 321 bitcoin: URI included unknown required parameter(s)
InstructionsExpired
The payment instructions have expired and are no longer payable.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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