pub enum PendingSweepBalance {
PendingBroadcast {
channel_id: Option<ChannelId>,
amount_satoshis: u64,
},
BroadcastAwaitingConfirmation {
channel_id: Option<ChannelId>,
latest_broadcast_height: u32,
latest_spending_txid: Txid,
amount_satoshis: u64,
},
AwaitingThresholdConfirmations {
channel_id: Option<ChannelId>,
latest_spending_txid: Txid,
confirmation_hash: BlockHash,
confirmation_height: u32,
amount_satoshis: u64,
},
}
Expand description
Details about the status of a known balance currently being swept to our on-chain wallet.
Variants§
PendingBroadcast
The spendable output is about to be swept, but a spending transaction has yet to be generated and broadcast.
Fields
BroadcastAwaitingConfirmation
A spending transaction has been generated and broadcast and is awaiting confirmation on-chain.
Fields
§
latest_broadcast_height: u32
The best height when we last broadcast a transaction spending the output being swept.
AwaitingThresholdConfirmations
A spending transaction has been confirmed on-chain and is awaiting threshold confirmations.
It will be pruned after reaching PRUNE_DELAY_BLOCKS
confirmations.
Fields
Trait Implementations§
Source§impl Clone for PendingSweepBalance
impl Clone for PendingSweepBalance
Source§fn clone(&self) -> PendingSweepBalance
fn clone(&self) -> PendingSweepBalance
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 Freeze for PendingSweepBalance
impl RefUnwindSafe for PendingSweepBalance
impl Send for PendingSweepBalance
impl Sync for PendingSweepBalance
impl Unpin for PendingSweepBalance
impl UnwindSafe for PendingSweepBalance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more