pub struct TrackedSpendableOutput {
pub descriptor: SpendableOutputDescriptor,
pub channel_id: Option<ChannelId>,
pub status: OutputSpendStatus,
}Expand description
The state of a spendable output currently tracked by an OutputSweeper.
Fields§
§descriptor: SpendableOutputDescriptorThe tracked output descriptor.
channel_id: Option<ChannelId>The channel this output belongs to.
Will be None if no channel_id was given to OutputSweeper::track_spendable_outputs
status: OutputSpendStatusThe current status of the output spend.
Implementations§
Source§impl TrackedSpendableOutput
impl TrackedSpendableOutput
Sourcepub fn is_spent_in(&self, tx: &Transaction) -> bool
pub fn is_spent_in(&self, tx: &Transaction) -> bool
Returns whether the output is spent in the given transaction.
Trait Implementations§
Source§impl Clone for TrackedSpendableOutput
impl Clone for TrackedSpendableOutput
Source§fn clone(&self) -> TrackedSpendableOutput
fn clone(&self) -> TrackedSpendableOutput
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 TrackedSpendableOutput
impl Debug for TrackedSpendableOutput
Source§impl PartialEq for TrackedSpendableOutput
impl PartialEq for TrackedSpendableOutput
Source§impl Readable for TrackedSpendableOutput
impl Readable for TrackedSpendableOutput
Source§impl Writeable for TrackedSpendableOutput
impl Writeable for TrackedSpendableOutput
impl Eq for TrackedSpendableOutput
impl StructuralPartialEq for TrackedSpendableOutput
Auto Trait Implementations§
impl Freeze for TrackedSpendableOutput
impl RefUnwindSafe for TrackedSpendableOutput
impl Send for TrackedSpendableOutput
impl Sync for TrackedSpendableOutput
impl Unpin for TrackedSpendableOutput
impl UnwindSafe for TrackedSpendableOutput
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