mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
Make OffersMessage
and offers errors Clone
able
This commit is contained in:
parent
8c61d9d0dc
commit
5f120b1b65
2 changed files with 3 additions and 3 deletions
|
@ -116,7 +116,7 @@ impl<T: SeekReadable> TryFrom<Vec<u8>> for ParsedMessage<T> {
|
|||
}
|
||||
|
||||
/// Error when parsing a bech32 encoded message using [`str::parse`].
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub enum Bolt12ParseError {
|
||||
/// The bech32 encoding does not conform to the BOLT 12 requirements for continuing messages
|
||||
/// across multiple parts (i.e., '+' followed by whitespace).
|
||||
|
@ -135,7 +135,7 @@ pub enum Bolt12ParseError {
|
|||
}
|
||||
|
||||
/// Error when interpreting a TLV stream as a specific type.
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub enum Bolt12SemanticError {
|
||||
/// The current [`std::time::SystemTime`] is past the offer or invoice's expiration.
|
||||
AlreadyExpired,
|
||||
|
|
|
@ -38,7 +38,7 @@ pub trait OffersMessageHandler {
|
|||
/// Possible BOLT 12 Offers messages sent and received via an [`OnionMessage`].
|
||||
///
|
||||
/// [`OnionMessage`]: crate::ln::msgs::OnionMessage
|
||||
#[derive(Debug)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum OffersMessage {
|
||||
/// A request for a [`Bolt12Invoice`] for a particular [`Offer`].
|
||||
///
|
||||
|
|
Loading…
Add table
Reference in a new issue