Struct lightning::routing::network_graph::DirectionalChannelInfo [−][src]
pub struct DirectionalChannelInfo { pub last_update: u32, pub enabled: bool, pub cltv_expiry_delta: u16, pub htlc_minimum_msat: u64, pub htlc_maximum_msat: Option<u64>, pub fees: RoutingFees, pub last_update_message: Option<ChannelUpdate>, }
Expand description
Details about one direction of a channel. Received within a channel update.
Fields
last_update: u32
When the last update to the channel direction was issued. Value is opaque, as set in the announcement.
enabled: bool
Whether the channel can be currently used for payments (in this one direction).
cltv_expiry_delta: u16
The difference in CLTV values that you must have when routing through this channel.
htlc_minimum_msat: u64
The minimum value, which must be relayed to the next hop via the channel
htlc_maximum_msat: Option<u64>
The maximum value which may be relayed to the next hop via the channel.
fees: RoutingFees
Fees charged when the channel is used for routing
last_update_message: Option<ChannelUpdate>
Most recent update for the channel received from the network Mostly redundant with the data we store in fields explicitly. Everything else is useful only for sending out for initial routing sync. Not stored if contains excess data to prevent DoS.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Writes self out to the given Writer
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
Writes self out to a Vec
Auto Trait Implementations
impl RefUnwindSafe for DirectionalChannelInfo
impl Send for DirectionalChannelInfo
impl Sync for DirectionalChannelInfo
impl Unpin for DirectionalChannelInfo
impl UnwindSafe for DirectionalChannelInfo
Blanket Implementations
Mutably borrows from an owned value. Read more