Skip to main content

AsPaymentHash

Trait AsPaymentHash 

Source
pub trait AsPaymentHash {
    // Required method
    fn as_payment_hash(&self) -> PaymentHash;
}
Expand description

Trait to capture any type that is associated with a Lightning payment hash

Required Methods§

Source

fn as_payment_hash(&self) -> PaymentHash

Get the payment hash associated with this item

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, T: AsPaymentHash> AsPaymentHash for &'a T

Implementors§