Struct lightning::routing::network_graph::ChannelUpdateInfo
source · [−]pub struct ChannelUpdateInfo {
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 as received within a ChannelUpdate
.
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
sourceimpl Clone for ChannelUpdateInfo
impl Clone for ChannelUpdateInfo
sourcefn clone(&self) -> ChannelUpdateInfo
fn clone(&self) -> ChannelUpdateInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChannelUpdateInfo
impl Debug for ChannelUpdateInfo
sourceimpl Display for ChannelUpdateInfo
impl Display for ChannelUpdateInfo
sourceimpl PartialEq<ChannelUpdateInfo> for ChannelUpdateInfo
impl PartialEq<ChannelUpdateInfo> for ChannelUpdateInfo
sourcefn eq(&self, other: &ChannelUpdateInfo) -> bool
fn eq(&self, other: &ChannelUpdateInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChannelUpdateInfo) -> bool
fn ne(&self, other: &ChannelUpdateInfo) -> bool
This method tests for !=
.
sourceimpl Readable for ChannelUpdateInfo
impl Readable for ChannelUpdateInfo
sourceimpl Writeable for ChannelUpdateInfo
impl Writeable for ChannelUpdateInfo
sourcefn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>
Writes self out to the given Writer
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
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
impl StructuralPartialEq for ChannelUpdateInfo
Auto Trait Implementations
impl RefUnwindSafe for ChannelUpdateInfo
impl Send for ChannelUpdateInfo
impl Sync for ChannelUpdateInfo
impl Unpin for ChannelUpdateInfo
impl UnwindSafe for ChannelUpdateInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> MaybeReadable for T where
T: Readable,
impl<T> MaybeReadable for T where
T: Readable,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more