pub struct OverrideSchedule { /* private fields */ }Expand description
Slot-keyed account overrides, carried forward per account. Clones share the same runtime resolutions so the session, reroute engine, and geyser pump observe one schedule.
Implementations§
Source§impl OverrideSchedule
impl OverrideSchedule
pub fn is_empty(&self) -> bool
Sourcepub fn slots(&self) -> impl Iterator<Item = u64> + '_
pub fn slots(&self) -> impl Iterator<Item = u64> + '_
Slots at which some entry activates, ascending.
Sourcepub fn active_at(&self, slot: u64) -> HashMap<Address, AccountSharedData>
pub fn active_at(&self, slot: u64) -> HashMap<Address, AccountSharedData>
Everything active at slot, resolved per account.
pub fn active_for(&self, key: &Address, slot: u64) -> Option<AccountSharedData>
Sourcepub fn newly_active(
&self,
after: Option<u64>,
up_to: u64,
) -> Vec<(Address, AccountSharedData)>
pub fn newly_active( &self, after: Option<u64>, up_to: u64, ) -> Vec<(Address, AccountSharedData)>
Final values activated in (after, up_to], deduplicated per account.
Sourcepub fn resolve(
&self,
slot: u64,
action_index: u32,
accounts: Option<HashMap<Address, AccountSharedData>>,
) -> Result<(), String>
pub fn resolve( &self, slot: u64, action_index: u32, accounts: Option<HashMap<Address, AccountSharedData>>, ) -> Result<(), String>
Resolve one computed contribution; None marks the action failed, contributing no accounts.
Counting failures is the caller’s job — it also sees the errors returned here.
Trait Implementations§
Source§impl Clone for OverrideSchedule
impl Clone for OverrideSchedule
Source§fn clone(&self) -> OverrideSchedule
fn clone(&self) -> OverrideSchedule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OverrideSchedule
impl Debug for OverrideSchedule
Source§impl Default for OverrideSchedule
impl Default for OverrideSchedule
Source§fn default() -> OverrideSchedule
fn default() -> OverrideSchedule
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for OverrideSchedule
impl !UnwindSafe for OverrideSchedule
impl Freeze for OverrideSchedule
impl Send for OverrideSchedule
impl Sync for OverrideSchedule
impl Unpin for OverrideSchedule
impl UnsafeUnpin for OverrideSchedule
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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