pub struct DirectedChannelInfo<'a> { /* private fields */ }Expand description
A wrapper around ChannelInfo representing information about the channel as directed from a
source node to a target node.
Implementations§
Source§impl<'a> DirectedChannelInfo<'a>
impl<'a> DirectedChannelInfo<'a>
Sourcepub fn channel(&self) -> &'a ChannelInfo
pub fn channel(&self) -> &'a ChannelInfo
Returns information for the channel.
Sourcepub fn effective_capacity(&self) -> EffectiveCapacity
pub fn effective_capacity(&self) -> EffectiveCapacity
Returns the EffectiveCapacity of the channel in the direction.
This is either the total capacity from the funding transaction, if known, or the
htlc_maximum_msat for the direction as advertised by the gossip network, if known,
otherwise.
Trait Implementations§
Source§impl<'a> Clone for DirectedChannelInfo<'a>
impl<'a> Clone for DirectedChannelInfo<'a>
Source§fn clone(&self) -> DirectedChannelInfo<'a>
fn clone(&self) -> DirectedChannelInfo<'a>
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<'a> Freeze for DirectedChannelInfo<'a>
impl<'a> RefUnwindSafe for DirectedChannelInfo<'a>
impl<'a> Send for DirectedChannelInfo<'a>
impl<'a> Sync for DirectedChannelInfo<'a>
impl<'a> Unpin for DirectedChannelInfo<'a>
impl<'a> UnwindSafe for DirectedChannelInfo<'a>
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