pub enum BalanceSource {
HolderForceClosed,
CounterpartyForceClosed,
CoopClose,
Htlc,
}Expand description
Indicates whether the balance is derived from a cooperative close, a force-close (for holder or counterparty), or whether it is for an HTLC.
Variants§
HolderForceClosed
The channel was force closed by the holder.
CounterpartyForceClosed
The channel was force closed by the counterparty.
CoopClose
The channel was cooperatively closed.
Htlc
This balance is the result of an HTLC.
Trait Implementations§
Source§impl Clone for BalanceSource
impl Clone for BalanceSource
Source§fn clone(&self) -> BalanceSource
fn clone(&self) -> BalanceSource
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 moreSource§impl Debug for BalanceSource
impl Debug for BalanceSource
Source§impl PartialEq for BalanceSource
impl PartialEq for BalanceSource
impl Eq for BalanceSource
impl StructuralPartialEq for BalanceSource
Auto Trait Implementations§
impl Freeze for BalanceSource
impl RefUnwindSafe for BalanceSource
impl Send for BalanceSource
impl Sync for BalanceSource
impl Unpin for BalanceSource
impl UnwindSafe for BalanceSource
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