Struct lightning_invoice::payment::InFlightHtlcs
source · [−]pub struct InFlightHtlcs(_);
Expand description
A map with liquidity value (in msat) keyed by a short channel id and the direction the HTLC
is traveling in. The direction boolean is determined by checking if the HTLC source’s public
key is less than its destination. See InFlightHtlcs::used_liquidity_msat
for more
details.
Implementations
sourceimpl InFlightHtlcs
impl InFlightHtlcs
Trait Implementations
sourceimpl Readable for InFlightHtlcs
impl Readable for InFlightHtlcs
sourceimpl Writeable for InFlightHtlcs
impl Writeable for InFlightHtlcs
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 encode(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn encode(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Writes self out to a Vec
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
Auto Trait Implementations
impl RefUnwindSafe for InFlightHtlcs
impl Send for InFlightHtlcs
impl Sync for InFlightHtlcs
impl Unpin for InFlightHtlcs
impl UnwindSafe for InFlightHtlcs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more