@@ -413,7 +413,7 @@ impl OnionMessagePath {
413
413
}
414
414
415
415
/// The destination of an onion message.
416
- #[ derive( Clone , Debug , PartialEq , Eq ) ]
416
+ #[ derive( Clone , Hash , Debug , PartialEq , Eq ) ]
417
417
pub enum Destination {
418
418
/// We're sending this onion message to a node.
419
419
Node ( PublicKey ) ,
@@ -440,7 +440,7 @@ impl Destination {
440
440
/// Result of successfully [sending an onion message].
441
441
///
442
442
/// [sending an onion message]: OnionMessenger::send_onion_message
443
- #[ derive( Debug , PartialEq , Eq ) ]
443
+ #[ derive( Clone , Hash , Debug , PartialEq , Eq ) ]
444
444
pub enum SendSuccess {
445
445
/// The message was buffered and will be sent once it is processed by
446
446
/// [`OnionMessageHandler::next_onion_message_for_peer`].
@@ -453,7 +453,7 @@ pub enum SendSuccess {
453
453
/// Errors that may occur when [sending an onion message].
454
454
///
455
455
/// [sending an onion message]: OnionMessenger::send_onion_message
456
- #[ derive( Debug , PartialEq , Eq ) ]
456
+ #[ derive( Clone , Hash , Debug , PartialEq , Eq ) ]
457
457
pub enum SendError {
458
458
/// Errored computing onion message packet keys.
459
459
Secp256k1 ( secp256k1:: Error ) ,
@@ -523,6 +523,7 @@ pub trait CustomOnionMessageHandler {
523
523
524
524
/// A processed incoming onion message, containing either a Forward (another onion message)
525
525
/// or a Receive payload with decrypted contents.
526
+ #[ derive( Debug ) ]
526
527
pub enum PeeledOnion < T : OnionMessageContents > {
527
528
/// Forwarded onion, with the next node id and a new onion
528
529
Forward ( PublicKey , OnionMessage ) ,
0 commit comments