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 send_spontaneous_payment(
        &self,
        route: &Route,
        payment_preimage: PaymentPreimage
    ) -> Result<PaymentId, PaymentSendFailure>; fn retry_payment(
        &self,
        route: &Route,
        payment_id: PaymentId
    ) -> Result<(), PaymentSendFailure>; fn abandon_payment(&self, payment_id: PaymentId); }
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.

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

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

Signals that no further retries for the given payment will occur.

Implementations on Foreign Types

Implementors