pub struct WalletArrivalsResult {
pub arrivals: Vec<WalletArrivalRecord>,
pub cursor: u64,
pub latest: u64,
}Expand description
One page of the arrival ledger (control.wallet.arrivals).
An empty arrivals list is an ANSWER — the node consulted its own replica and
nothing has arrived since the cursor. It is NOT a claim that the replica is current: a node that
has never completed a catch-up has no arrival baseline and reports an empty page forever, which
is the honest answer to “what arrived?” from a wallet that cannot tell history from news. A
caller that needs to know whether the replica is current asks control.wallet.syncStatus.
Fields§
§arrivals: Vec<WalletArrivalRecord>The page, oldest first.
cursor: u64Where the CLIENT got to: the position of the last row in this page, or the caller’s own
after_seq when the page is empty. This is the value to resume from.
latest: u64Where the LEDGER got to when this answer was assembled.
Read AFTER the page, so an arrival recorded in between sits above the page and below this
value — which is exactly why resuming from it would step straight over that arrival and lose
a notification silently. It exists for ONE question cursor cannot answer: a
first-run client passes it back as after_seq to start from NOW instead of replaying the
whole ledger as a burst of toasts.
Trait Implementations§
Source§impl Clone for WalletArrivalsResult
impl Clone for WalletArrivalsResult
Source§fn clone(&self) -> WalletArrivalsResult
fn clone(&self) -> WalletArrivalsResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more