pub enum RecoveryStatus {
NotRun,
Failed(Error),
Completed(RecoveryReport),
}Expand description
Outcome of the recovery scan on wallet open.
crate::OpenWalletArgs::on_recovery_finished is called exactly once per
successful open, with one of these. A caller never has to read meaning into
the callback staying silent: not running and failing are both stated.
Variants§
NotRun
No scan was attempted: the wallet already existed, or the caller set
crate::OpenWalletArgs::skip_recovery.
Failed(Error)
The scan errored before it could produce a report. Nothing is known about the mailbox’s VTXOs, so funds may be missing until a retry succeeds.
Completed(RecoveryReport)
The scan ran to the end. Check RecoveryReport::is_complete: a finished
scan can still leave individual VTXOs unaccounted for.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RecoveryStatus
impl RefUnwindSafe for RecoveryStatus
impl Send for RecoveryStatus
impl Sync for RecoveryStatus
impl Unpin for RecoveryStatus
impl UnsafeUnpin for RecoveryStatus
impl UnwindSafe for RecoveryStatus
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> 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