pub struct Htlc { /* private fields */ }Implementations§
Source§impl Htlc
impl Htlc
Sourcepub fn anchors_zero_fee_htlc_tx(&self) -> &bool
pub fn anchors_zero_fee_htlc_tx(&self) -> &bool
Method borrowing Htlc::anchors_zero_fee_htlc_tx field.
Set if the feature option_anchors_zero_fee_htlc_tx was negotiated via
Sourcepub fn offered_htlcs(&self) -> &BTreeMap<u64, HtlcSecret>
pub fn offered_htlcs(&self) -> &BTreeMap<u64, HtlcSecret>
Method borrowing Htlc::offered_htlcs field.
Sourcepub fn received_htlcs(&self) -> &BTreeMap<u64, HtlcSecret>
pub fn received_htlcs(&self) -> &BTreeMap<u64, HtlcSecret>
Method borrowing Htlc::received_htlcs field.
Sourcepub fn resolved_htlcs(&self) -> &BTreeMap<u64, HtlcKnown>
pub fn resolved_htlcs(&self) -> &BTreeMap<u64, HtlcKnown>
Method borrowing Htlc::resolved_htlcs field.
Sourcepub fn to_self_delay(&self) -> &u16
pub fn to_self_delay(&self) -> &u16
Method borrowing Htlc::to_self_delay field.
Sourcepub fn local_revocation_basepoint(&self) -> &PublicKey
pub fn local_revocation_basepoint(&self) -> &PublicKey
Method borrowing Htlc::local_revocation_basepoint field.
Sourcepub fn remote_revocation_basepoint(&self) -> &PublicKey
pub fn remote_revocation_basepoint(&self) -> &PublicKey
Method borrowing Htlc::remote_revocation_basepoint field.
Sourcepub fn local_basepoint(&self) -> &PublicKey
pub fn local_basepoint(&self) -> &PublicKey
Method borrowing Htlc::local_basepoint field.
Sourcepub fn remote_basepoint(&self) -> &PublicKey
pub fn remote_basepoint(&self) -> &PublicKey
Method borrowing Htlc::remote_basepoint field.
Sourcepub fn local_delayed_basepoint(&self) -> &PublicKey
pub fn local_delayed_basepoint(&self) -> &PublicKey
Method borrowing Htlc::local_delayed_basepoint field.
Sourcepub fn channel_id(&self) -> &ChannelId
pub fn channel_id(&self) -> &ChannelId
Method borrowing Htlc::channel_id field.
Sourcepub fn htlc_minimum_msat(&self) -> &u64
pub fn htlc_minimum_msat(&self) -> &u64
Method borrowing Htlc::htlc_minimum_msat field.
indicates the smallest value HTLC this node will accept.
Sourcepub fn max_htlc_value_in_flight_msat(&self) -> &u64
pub fn max_htlc_value_in_flight_msat(&self) -> &u64
Method borrowing Htlc::max_htlc_value_in_flight_msat field.
Sourcepub fn max_accepted_htlcs(&self) -> &u16
pub fn max_accepted_htlcs(&self) -> &u16
Method borrowing Htlc::max_accepted_htlcs field.
Sourcepub fn next_recieved_htlc_id(&self) -> &u64
pub fn next_recieved_htlc_id(&self) -> &u64
Method borrowing Htlc::next_recieved_htlc_id field.
Sourcepub fn next_offered_htlc_id(&self) -> &u64
pub fn next_offered_htlc_id(&self) -> &u64
Method borrowing Htlc::next_offered_htlc_id field.
Trait Implementations§
Source§impl ChannelExtension<BoltExt> for Htlc
impl ChannelExtension<BoltExt> for Htlc
Source§impl Extension<BoltExt> for Htlc
impl Extension<BoltExt> for Htlc
fn identity(&self) -> BoltExt
Source§fn update_from_local(&mut self, _message: &()) -> Result<(), Error>
fn update_from_local(&mut self, _message: &()) -> Result<(), Error>
Source§fn state_change(
&mut self,
request: &UpdateReq,
message: &mut Messages,
) -> Result<(), Error>
fn state_change( &mut self, request: &UpdateReq, message: &mut Messages, ) -> Result<(), Error>
Source§fn update_from_peer(&mut self, message: &Messages) -> Result<(), Error>
fn update_from_peer(&mut self, message: &Messages) -> Result<(), Error>
fn load_state(&mut self, state: &ChannelState)
fn store_state(&self, state: &mut ChannelState)
Source§impl Ord for Htlc
impl Ord for Htlc
Source§impl PartialOrd for Htlc
impl PartialOrd for Htlc
Source§impl StrictDecode for Htlc
impl StrictDecode for Htlc
Source§fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
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>
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>
path and reconstructs object from it. Fails
with Error::DataNotEntirelyConsumed if file contains remaining
data after the object reconstruction.Source§impl StrictEncode for Htlc
impl StrictEncode for Htlc
Source§fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
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>
StrictEncode::strict_encode
functionimpl Eq for Htlc
impl StructuralPartialEq for Htlc
Auto Trait Implementations§
impl Freeze for Htlc
impl RefUnwindSafe for Htlc
impl Send for Htlc
impl Sync for Htlc
impl Unpin for Htlc
impl UnwindSafe for Htlc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key and return true if they are equal.