pub struct RecoveryReport { /* private fields */ }Expand description
Summary of a recovery scan over the seed-derived recovery mailbox.
skipped vs failed is the load-bearing distinction: a skipped VTXO was
decided not to be spendable (spent, exited on-chain, or reported
non-spendable), whereas a failed VTXO could not be decided due to an error.
A non-empty failed or foreign set means funds may be missing, so it must
not be taken for a complete recovery. Ids are kept (not counted) so a caller
can log or retry the exact VTXOs.
Implementations§
Source§impl RecoveryReport
impl RecoveryReport
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Whether the scan accounted for every VTXO in the mailbox.
A failed VTXO or foreign id both mean funds may be missing, so neither
may be present. failed is retryable; a foreign id instead needs a wider
gap limit to be matched.
pub fn recovered(&self) -> &RecoveryReportEntry
pub fn push_recovered(&mut self, vtxo: &Vtxo<Full>)
pub fn skipped(&self) -> &RecoveryReportEntry
pub fn push_skipped(&mut self, vtxo: &Vtxo<Full>)
pub fn foreign(&self) -> &RecoveryReportEntry
pub fn push_foreign(&mut self, vtxo: &Vtxo<Full>)
pub fn failed(&self) -> &RecoveryReportEntry
pub fn push_failed(&mut self, id: VtxoId, amount: Option<Amount>)
pub fn exited(&self) -> &RecoveryReportEntry
pub fn push_exited(&mut self, vtxo: &Vtxo<Full>)
Trait Implementations§
Source§impl Clone for RecoveryReport
impl Clone for RecoveryReport
Source§fn clone(&self) -> RecoveryReport
fn clone(&self) -> RecoveryReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RecoveryReport
impl Debug for RecoveryReport
Source§impl Default for RecoveryReport
impl Default for RecoveryReport
Source§fn default() -> RecoveryReport
fn default() -> RecoveryReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RecoveryReport
impl RefUnwindSafe for RecoveryReport
impl Send for RecoveryReport
impl Sync for RecoveryReport
impl Unpin for RecoveryReport
impl UnsafeUnpin for RecoveryReport
impl UnwindSafe for RecoveryReport
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request