Struct photon_indexer::ingester::parser::state_update::StateUpdate
source · pub struct StateUpdate {
pub in_accounts: Vec<Account>,
pub out_accounts: Vec<Account>,
pub path_nodes: HashMap<([u8; 32], u32), EnrichedPathNode>,
pub account_transactions: HashSet<AccountTransaction>,
}Expand description
Representation of state update of the compression system that is optimal for simple persistance.
Fields§
§in_accounts: Vec<Account>§out_accounts: Vec<Account>§path_nodes: HashMap<([u8; 32], u32), EnrichedPathNode>§account_transactions: HashSet<AccountTransaction>Implementations§
source§impl StateUpdate
impl StateUpdate
pub fn new() -> Self
pub fn prune_redundant_updates(&mut self)
pub fn merge_updates(updates: Vec<StateUpdate>) -> StateUpdate
Trait Implementations§
source§impl Default for StateUpdate
impl Default for StateUpdate
source§fn default() -> StateUpdate
fn default() -> StateUpdate
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StateUpdate
impl RefUnwindSafe for StateUpdate
impl Send for StateUpdate
impl Sync for StateUpdate
impl Unpin for StateUpdate
impl UnwindSafe for StateUpdate
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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