pub struct ObsoleteAccounts {
pub accounts: Vec<ObsoleteAccountItem>,
}๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Fieldsยง
ยงaccounts: Vec<ObsoleteAccountItem>๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Implementationsยง
Sourceยงimpl ObsoleteAccounts
impl ObsoleteAccounts
Sourcepub fn mark_accounts_obsolete(
&mut self,
newly_obsolete_accounts: impl ExactSizeIterator<Item = (Offset, usize)>,
slot: Slot,
)
๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn mark_accounts_obsolete( &mut self, newly_obsolete_accounts: impl ExactSizeIterator<Item = (Offset, usize)>, slot: Slot, )
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Marks the accounts at the given offsets as obsolete
Sourcepub fn filter_obsolete_accounts(
&self,
slot: Option<Slot>,
) -> impl Iterator<Item = (Offset, usize)> + '_
๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn filter_obsolete_accounts( &self, slot: Option<Slot>, ) -> impl Iterator<Item = (Offset, usize)> + '_
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Returns the accounts that were marked obsolete as of the passed in slot or earlier. If slot is None, then slot will be assumed to be the max root and all obsolete accounts will be returned.
Sourcepub fn obsolete_accounts_for_snapshots(&self, slot: Slot) -> ObsoleteAccounts
๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn obsolete_accounts_for_snapshots(&self, slot: Slot) -> ObsoleteAccounts
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Returns the accounts that were marked obsolete as of the passed in slot or earlier. Returned data includes the slots that the accounts were marked obsolete at
Trait Implementationsยง
Sourceยงimpl Clone for ObsoleteAccounts
impl Clone for ObsoleteAccounts
Sourceยงfn clone(&self) -> ObsoleteAccounts
fn clone(&self) -> ObsoleteAccounts
Returns a duplicate of the value. Read more
1.0.0 ยท 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 ObsoleteAccounts
impl Debug for ObsoleteAccounts
Sourceยงimpl Default for ObsoleteAccounts
impl Default for ObsoleteAccounts
Sourceยงfn default() -> ObsoleteAccounts
fn default() -> ObsoleteAccounts
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl PartialEq for ObsoleteAccounts
impl PartialEq for ObsoleteAccounts
impl StructuralPartialEq for ObsoleteAccounts
Auto Trait Implementationsยง
impl Freeze for ObsoleteAccounts
impl RefUnwindSafe for ObsoleteAccounts
impl Send for ObsoleteAccounts
impl Sync for ObsoleteAccounts
impl Unpin for ObsoleteAccounts
impl UnwindSafe for ObsoleteAccounts
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
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 more