Struct breez_sdk_liquid::lightning::routing::gossip::DirectedChannelInfo
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§
§impl<'a> DirectedChannelInfo<'a>
impl<'a> DirectedChannelInfo<'a>
pub fn channel(&self) -> &'a ChannelInfo
pub fn channel(&self) -> &'a ChannelInfo
Returns information for the channel.
pub fn htlc_maximum_msat(&self) -> u64
pub fn htlc_maximum_msat(&self) -> u64
Returns the maximum HTLC amount allowed over the channel in the direction.
pub 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§
§impl<'a> Clone for DirectedChannelInfo<'a>
impl<'a> Clone for DirectedChannelInfo<'a>
§fn clone(&self) -> DirectedChannelInfo<'a>
fn clone(&self) -> DirectedChannelInfo<'a>
Returns a copy 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§
§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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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>
Wrap the input message
T
in a tonic::Request