Struct solana_program_runtime::sysvar_cache::SysvarCache
source · [−]pub struct SysvarCache { /* private fields */ }
Implementations
sourceimpl SysvarCache
impl SysvarCache
pub fn get_clock(&self) -> Result<Arc<Clock>, InstructionError>
pub fn set_clock(&mut self, clock: Clock)
pub fn get_epoch_schedule(&self) -> Result<Arc<EpochSchedule>, InstructionError>
pub fn set_epoch_schedule(&mut self, epoch_schedule: EpochSchedule)
pub fn get_fees(&self) -> Result<Arc<Fees>, InstructionError>
👎 Deprecated
pub fn set_fees(&mut self, fees: Fees)
👎 Deprecated
pub fn get_rent(&self) -> Result<Arc<Rent>, InstructionError>
pub fn set_rent(&mut self, rent: Rent)
pub fn get_slot_hashes(&self) -> Result<Arc<SlotHashes>, InstructionError>
pub fn set_slot_hashes(&mut self, slot_hashes: SlotHashes)
pub fn get_recent_blockhashes(
&self
) -> Result<Arc<RecentBlockhashes>, InstructionError>
👎 Deprecated
pub fn set_recent_blockhashes(&mut self, recent_blockhashes: RecentBlockhashes)
👎 Deprecated
pub fn get_stake_history(&self) -> Result<Arc<StakeHistory>, InstructionError>
pub fn set_stake_history(&mut self, stake_history: StakeHistory)
pub fn fill_missing_entries<F: FnMut(&Pubkey) -> Option<AccountSharedData>>(
&mut self,
load_sysvar_account: F
)
pub fn reset(&mut self)
Trait Implementations
sourceimpl AbiExample for SysvarCache
impl AbiExample for SysvarCache
sourceimpl Clone for SysvarCache
impl Clone for SysvarCache
sourcefn clone(&self) -> SysvarCache
fn clone(&self) -> SysvarCache
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 SysvarCache
impl Debug for SysvarCache
sourceimpl Default for SysvarCache
impl Default for SysvarCache
sourcefn default() -> SysvarCache
fn default() -> SysvarCache
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SysvarCache
impl Send for SysvarCache
impl Sync for SysvarCache
impl Unpin for SysvarCache
impl UnwindSafe for SysvarCache
Blanket Implementations
sourceimpl<T> AbiExample for T
impl<T> AbiExample for T
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<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