Struct aptos_data_client::AdvertisedData
source · [−]pub struct AdvertisedData {
pub account_states: Vec<CompleteDataRange<Version>>,
pub epoch_ending_ledger_infos: Vec<CompleteDataRange<Epoch>>,
pub synced_ledger_infos: Vec<LedgerInfoWithSignatures>,
pub transactions: Vec<CompleteDataRange<Version>>,
pub transaction_outputs: Vec<CompleteDataRange<Version>>,
}Expand description
A summary of all data that is currently advertised in the network.
Fields
account_states: Vec<CompleteDataRange<Version>>The ranges of account states advertised, e.g., if a range is (X,Y), it means all account states are held for every version X->Y (inclusive).
epoch_ending_ledger_infos: Vec<CompleteDataRange<Epoch>>The ranges of epoch ending ledger infos advertised, e.g., if a range is (X,Y), it means all epoch ending ledger infos for epochs X->Y (inclusive) are available.
synced_ledger_infos: Vec<LedgerInfoWithSignatures>The ledger infos corresponding to the highest synced versions currently advertised.
transactions: Vec<CompleteDataRange<Version>>The ranges of transactions advertised, e.g., if a range is (X,Y), it means all transactions for versions X->Y (inclusive) are available.
transaction_outputs: Vec<CompleteDataRange<Version>>The ranges of transaction outputs advertised, e.g., if a range is (X,Y), it means all transaction outputs for versions X->Y (inclusive) are available.
Implementations
sourceimpl AdvertisedData
impl AdvertisedData
pub fn empty() -> Self
sourcepub fn contains_range(
lowest: u64,
highest: u64,
advertised_ranges: &[CompleteDataRange<u64>]
) -> bool
pub fn contains_range(
lowest: u64,
highest: u64,
advertised_ranges: &[CompleteDataRange<u64>]
) -> bool
Returns true iff all data items (lowest to highest, inclusive) can
be found in the given advertised_ranges.
sourcepub fn highest_epoch_ending_ledger_info(&self) -> Option<Epoch>
pub fn highest_epoch_ending_ledger_info(&self) -> Option<Epoch>
Returns the highest epoch ending ledger info advertised in the network
sourcepub fn highest_synced_ledger_info(&self) -> Option<LedgerInfoWithSignatures>
pub fn highest_synced_ledger_info(&self) -> Option<LedgerInfoWithSignatures>
Returns the highest synced ledger info advertised in the network
sourcepub fn lowest_account_states_version(&self) -> Option<Version>
pub fn lowest_account_states_version(&self) -> Option<Version>
Returns the lowest advertised version containing all account states
sourcepub fn lowest_transaction_output_version(&self) -> Option<Version>
pub fn lowest_transaction_output_version(&self) -> Option<Version>
Returns the lowest advertised transaction output version
sourcepub fn lowest_transaction_version(&self) -> Option<Version>
pub fn lowest_transaction_version(&self) -> Option<Version>
Returns the lowest advertised transaction version
Trait Implementations
sourceimpl Clone for AdvertisedData
impl Clone for AdvertisedData
sourcefn clone(&self) -> AdvertisedData
fn clone(&self) -> AdvertisedData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AdvertisedData
impl Debug for AdvertisedData
sourceimpl PartialEq<AdvertisedData> for AdvertisedData
impl PartialEq<AdvertisedData> for AdvertisedData
sourcefn eq(&self, other: &AdvertisedData) -> bool
fn eq(&self, other: &AdvertisedData) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AdvertisedData) -> bool
fn ne(&self, other: &AdvertisedData) -> bool
This method tests for !=.
impl Eq for AdvertisedData
impl StructuralEq for AdvertisedData
impl StructuralPartialEq for AdvertisedData
Auto Trait Implementations
impl RefUnwindSafe for AdvertisedData
impl Send for AdvertisedData
impl Sync for AdvertisedData
impl Unpin for AdvertisedData
impl UnwindSafe for AdvertisedData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more