Struct OptionalOfferPaymentParams

Source
pub struct OptionalOfferPaymentParams {
    pub payer_note: Option<String>,
    pub route_params_config: RouteParametersConfig,
    pub retry_strategy: Retry,
}
Expand description

Optional arguments to ChannelManager::pay_for_offer .

These fields will often not need to be set, and the provided Self::default can be used.

Fields§

§payer_note: Option<String>

A note that is communicated to the recipient about this payment via InvoiceRequest::payer_note.

§route_params_config: RouteParametersConfig

Pathfinding options which tweak how the path is constructed to the recipient.

§retry_strategy: Retry

The number of tries or time during which we’ll retry this payment if some paths to the recipient fail.

Once the retry limit is reached, further path failures will not be retried and the payment will ultimately fail once all pending paths have failed (generating an Event::PaymentFailed).

Trait Implementations§

Source§

impl Default for OptionalOfferPaymentParams

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V