Struct breez_sdk_liquid::lightning::routing::gossip::ChannelUpdateInfo
pub struct ChannelUpdateInfo {
pub last_update: u32,
pub enabled: bool,
pub cltv_expiry_delta: u16,
pub htlc_minimum_msat: u64,
pub htlc_maximum_msat: 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: 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§
§impl Clone for ChannelUpdateInfo
impl Clone for ChannelUpdateInfo
§fn clone(&self) -> ChannelUpdateInfo
fn clone(&self) -> ChannelUpdateInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for ChannelUpdateInfo
impl Debug for ChannelUpdateInfo
§impl Display for ChannelUpdateInfo
impl Display for ChannelUpdateInfo
§impl PartialEq for ChannelUpdateInfo
impl PartialEq for ChannelUpdateInfo
§impl Readable for ChannelUpdateInfo
impl Readable for ChannelUpdateInfo
§fn read<R>(reader: &mut R) -> Result<ChannelUpdateInfo, DecodeError>where
R: Read,
fn read<R>(reader: &mut R) -> Result<ChannelUpdateInfo, DecodeError>where
R: Read,
Self
in from the given Read
.§impl Writeable for ChannelUpdateInfo
impl Writeable for ChannelUpdateInfo
impl Eq for ChannelUpdateInfo
impl StructuralPartialEq for ChannelUpdateInfo
Auto Trait Implementations§
impl Freeze for ChannelUpdateInfo
impl RefUnwindSafe for ChannelUpdateInfo
impl Send for ChannelUpdateInfo
impl Sync for ChannelUpdateInfo
impl Unpin for ChannelUpdateInfo
impl UnwindSafe for ChannelUpdateInfo
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
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)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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>
T
in a tonic::Request