Trait lightning_invoice::payment::Payer[][src]

pub trait Payer {
    fn node_id(&self) -> PublicKey;
fn first_hops(&self) -> Vec<ChannelDetails>
Notable traits for Vec<u8, A>
impl<A> Write for Vec<u8, A> where
    A: Allocator
;
fn send_payment(
        &self,
        route: &Route,
        payment_hash: PaymentHash,
        payment_secret: &Option<PaymentSecret>
    ) -> Result<PaymentId, PaymentSendFailure>;
fn retry_payment(
        &self,
        route: &Route,
        payment_id: PaymentId
    ) -> Result<(), PaymentSendFailure>; }
Expand description

A trait defining behavior of an Invoice payer.

Required methods

Returns the payer’s node id.

Returns the payer’s channels.

Sends a payment over the Lightning Network using the given Route.

Retries a failed payment path for the PaymentId using the given Route.

Implementations on Foreign Types

Implementors