Skip to main content

WalletArrivalsResult

Struct WalletArrivalsResult 

Source
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: u64

Where 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: u64

Where 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

Source§

fn clone(&self) -> WalletArrivalsResult

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WalletArrivalsResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for WalletArrivalsResult

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for WalletArrivalsResult

Source§

impl PartialEq for WalletArrivalsResult

Source§

fn eq(&self, other: &WalletArrivalsResult) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for WalletArrivalsResult

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for WalletArrivalsResult

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.