pub struct PaymentConstraints {
pub max_cltv_expiry: u32,
pub htlc_minimum_msat: u64,
}
Expand description
Constraints for relaying over a given BlindedHop
.
Fields§
§max_cltv_expiry: u32
The maximum total CLTV that is acceptable when relaying a payment over this BlindedHop
.
htlc_minimum_msat: u64
The minimum value, in msat, that may be accepted by the node corresponding to this
BlindedHop
.
Trait Implementations§
§impl Clone for PaymentConstraints
impl Clone for PaymentConstraints
§fn clone(&self) -> PaymentConstraints
fn clone(&self) -> PaymentConstraints
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for PaymentConstraints
impl Debug for PaymentConstraints
§impl Readable for PaymentConstraints
impl Readable for PaymentConstraints
§fn read<R>(r: &mut R) -> Result<PaymentConstraints, DecodeError>where
R: Read,
fn read<R>(r: &mut R) -> Result<PaymentConstraints, DecodeError>where
R: Read,
Reads a
Self
in from the given Read
.§impl Writeable for PaymentConstraints
impl Writeable for PaymentConstraints
Auto Trait Implementations§
impl Freeze for PaymentConstraints
impl RefUnwindSafe for PaymentConstraints
impl Send for PaymentConstraints
impl Sync for PaymentConstraints
impl Unpin for PaymentConstraints
impl UnwindSafe for PaymentConstraints
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request