pub struct ChannelPolicy {
pub pubkey: PublicKey,
pub max_htlc_count: u64,
pub max_in_flight_msat: u64,
pub min_htlc_size_msat: u64,
pub max_htlc_size_msat: u64,
pub cltv_expiry_delta: u32,
pub base_fee: u64,
pub fee_rate_prop: u64,
}
Expand description
Represents one node in the channel’s forwarding policy and restrictions. Note that this doesn’t directly map to a single concept in the protocol, a few things have been combined for the sake of simplicity. Used to manage the lightning “state machine” and check that HTLCs are added in accordance of the advertised policy.
Fields§
§pubkey: PublicKey
§max_htlc_count: u64
§max_in_flight_msat: u64
§min_htlc_size_msat: u64
§max_htlc_size_msat: u64
§cltv_expiry_delta: u32
§base_fee: u64
§fee_rate_prop: u64
Trait Implementations§
Source§impl Clone for ChannelPolicy
impl Clone for ChannelPolicy
Source§fn clone(&self) -> ChannelPolicy
fn clone(&self) -> ChannelPolicy
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ChannelPolicy
impl RefUnwindSafe for ChannelPolicy
impl Send for ChannelPolicy
impl Sync for ChannelPolicy
impl Unpin for ChannelPolicy
impl UnwindSafe for ChannelPolicy
Blanket Implementations§
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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
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