pub struct ContractRestoreReport {
pub gap_limit: u32,
pub scanned_from: Option<u32>,
pub scanned_to_exclusive: Option<u32>,
pub scanned_keys: u32,
pub discovered_key_indexes: Vec<u32>,
pub last_used_key_index: Option<u32>,
pub next_key_index: Option<u32>,
pub offchain_contracts: u32,
pub boarding_contracts: u32,
pub inserted_contracts: u32,
pub known_contracts: u32,
pub entries: Vec<ContractRestoreEntry>,
}Expand description
Summary returned by Client::restore_contracts.
Fields§
§gap_limit: u32Gap limit used for this scan.
scanned_from: Option<u32>First derived key index that was probed, if any.
scanned_to_exclusive: Option<u32>One past the last derived key index that was probed, if any.
scanned_keys: u32Derived key indexes that were probed.
discovered_key_indexes: Vec<u32>Key indexes where at least one contract had activity.
last_used_key_index: Option<u32>Highest discovered key index, if any.
next_key_index: Option<u32>Suggested next receive key index, if any.
offchain_contracts: u32Offchain default/delegate contracts with VTXO activity.
boarding_contracts: u32Boarding contracts with on-chain UTXO activity.
inserted_contracts: u32Contracts that were not already in the store.
known_contracts: u32Discovered contracts that were already present in the store.
entries: Vec<ContractRestoreEntry>Per-contract discovery details for caller UX.
Implementations§
Source§impl ContractRestoreReport
impl ContractRestoreReport
pub fn discovered_keys(&self) -> u32
pub fn discovered_contracts(&self) -> u32
Trait Implementations§
Source§impl Clone for ContractRestoreReport
impl Clone for ContractRestoreReport
Source§fn clone(&self) -> ContractRestoreReport
fn clone(&self) -> ContractRestoreReport
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 ContractRestoreReport
impl Debug for ContractRestoreReport
Source§impl Default for ContractRestoreReport
impl Default for ContractRestoreReport
Source§fn default() -> ContractRestoreReport
fn default() -> ContractRestoreReport
Returns the “default value” for a type. Read more
impl Eq for ContractRestoreReport
Source§impl PartialEq for ContractRestoreReport
impl PartialEq for ContractRestoreReport
Source§fn eq(&self, other: &ContractRestoreReport) -> bool
fn eq(&self, other: &ContractRestoreReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContractRestoreReport
Auto Trait Implementations§
impl Freeze for ContractRestoreReport
impl RefUnwindSafe for ContractRestoreReport
impl Send for ContractRestoreReport
impl Sync for ContractRestoreReport
impl Unpin for ContractRestoreReport
impl UnsafeUnpin for ContractRestoreReport
impl UnwindSafe for ContractRestoreReport
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T behind Arc pointerSource§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, X> CoerceTo<T> for Xwhere
T: CoerceFrom<X> + ?Sized,
impl<T, X> CoerceTo<T> for Xwhere
T: CoerceFrom<X> + ?Sized,
fn coerce_rc_to(self: Rc<X>) -> Rc<T>
fn coerce_box_to(self: Box<X>) -> Box<T>
fn coerce_ref_to(&self) -> &T
fn coerce_mut_to(&mut self) -> &mut T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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