pub struct NUT13Options {
pub batch_size: u32,
pub max_gap: u32,
}Expand description
Options for crate::wallet::Wallet::restore_with_opts.
Defaults match the NUT-13 spec recommendation (https://github.com/cashubtc/nuts/blob/main/13.md#generate-blindedmessages): a batch of 100 blinded messages and three consecutive empty batches to signal end-of-history. Callers that need more conservative pacing or different gap tolerance can override either field.
Fields§
§batch_size: u32Number of blinded messages to request per batch.
max_gap: u32Number of consecutive empty batches that terminate the scan.
Implementations§
Source§impl NUT13Options
impl NUT13Options
Sourcepub const DEFAULT_BATCH_SIZE: u32 = 100
pub const DEFAULT_BATCH_SIZE: u32 = 100
NUT-13 default restore batch size.
Sourcepub const DEFAULT_MAX_GAP: u32 = 3
pub const DEFAULT_MAX_GAP: u32 = 3
NUT-13 default restore gap limit.
Trait Implementations§
Source§impl Clone for NUT13Options
impl Clone for NUT13Options
Source§fn clone(&self) -> NUT13Options
fn clone(&self) -> NUT13Options
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 NUT13Options
impl Debug for NUT13Options
Source§impl Default for NUT13Options
impl Default for NUT13Options
Source§fn default() -> NUT13Options
fn default() -> NUT13Options
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NUT13Options
impl RefUnwindSafe for NUT13Options
impl Send for NUT13Options
impl Sync for NUT13Options
impl Unpin for NUT13Options
impl UnsafeUnpin for NUT13Options
impl UnwindSafe for NUT13Options
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
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> 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 moreSource§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