pub struct LocalChannelInfo {
pub remote_node: NodeId,
pub channel_id: ChannelId,
pub short_channel_id: ShortChannelId,
pub chain_hash: Slice32,
pub inbound_capacity_msat: u64,
pub outbound_capacity_msat: u64,
pub cltv_expiry: u16,
pub htlc_minimum_msat: u64,
pub htlc_maximum_msat: u64,
}Expand description
Information about channel used for route construction and re-broadcasting gossip messages.
Fields§
§remote_node: NodeIdOther node identity
channel_id: ChannelIdFull channel id
short_channel_id: ShortChannelIdShort Channel Id
chain_hash: Slice32Chainhash
inbound_capacity_msat: u64§outbound_capacity_msat: u64§cltv_expiry: u16CLTV expiry delta
htlc_minimum_msat: u64minimum HTLC in msat
htlc_maximum_msat: u64maximum HTLC in msat
Trait Implementations§
Source§impl Clone for LocalChannelInfo
impl Clone for LocalChannelInfo
Source§fn clone(&self) -> LocalChannelInfo
fn clone(&self) -> LocalChannelInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalChannelInfo
impl Debug for LocalChannelInfo
Source§impl Display for LocalChannelInfo
impl Display for LocalChannelInfo
Source§impl Hash for LocalChannelInfo
impl Hash for LocalChannelInfo
Source§impl PartialEq for LocalChannelInfo
impl PartialEq for LocalChannelInfo
Source§impl StrictDecode for LocalChannelInfo
impl StrictDecode for LocalChannelInfo
Source§fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
Decode with the given
std::io::Read instance; must either
construct an instance or return implementation-specific error type.Source§fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
Tries to deserialize byte array into the current type using
StrictDecode::strict_decode. If there are some data remains in the
buffer once deserialization is completed, fails with
Error::DataNotEntirelyConsumed. Use io::Cursor over the buffer and
StrictDecode::strict_decode to avoid such failures.Source§fn strict_file_load(path: impl AsRef<Path>) -> Result<Self, Error>
fn strict_file_load(path: impl AsRef<Path>) -> Result<Self, Error>
Reads data from file at
path and reconstructs object from it. Fails
with Error::DataNotEntirelyConsumed if file contains remaining
data after the object reconstruction.Source§impl StrictEncode for LocalChannelInfo
impl StrictEncode for LocalChannelInfo
Source§fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
Encode with the given
std::io::Write instance; must return result
with either amount of bytes encoded – or implementation-specific
error type.Source§fn strict_serialize(&self) -> Result<Vec<u8>, Error>
fn strict_serialize(&self) -> Result<Vec<u8>, Error>
Serializes data as a byte array using
StrictEncode::strict_encode
functionimpl Copy for LocalChannelInfo
impl Eq for LocalChannelInfo
impl StructuralPartialEq for LocalChannelInfo
Auto Trait Implementations§
impl Freeze for LocalChannelInfo
impl RefUnwindSafe for LocalChannelInfo
impl Send for LocalChannelInfo
impl Sync for LocalChannelInfo
impl Unpin for LocalChannelInfo
impl UnwindSafe for LocalChannelInfo
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.