Struct solana_runtime::status_cache::StatusCache [−][src]
Implementations
impl<T: Serialize + Clone> StatusCache<T>
[src]
impl<T: Serialize + Clone> StatusCache<T>
[src]pub fn clear_slot_entries(&mut self, slot: Slot)
[src]
pub fn get_status<K: AsRef<[u8]>>(
&self,
key: K,
transaction_blockhash: &Hash,
ancestors: &Ancestors
) -> Option<(Slot, T)>
[src]
pub fn get_status<K: AsRef<[u8]>>(
&self,
key: K,
transaction_blockhash: &Hash,
ancestors: &Ancestors
) -> Option<(Slot, T)>
[src]Check if the key is in any of the forks in the ancestors set and with a certain blockhash.
pub fn get_status_any_blockhash<K: AsRef<[u8]>>(
&self,
key: &K,
ancestors: &Ancestors
) -> Option<(Slot, T)>
[src]
pub fn get_status_any_blockhash<K: AsRef<[u8]>>(
&self,
key: &K,
ancestors: &Ancestors
) -> Option<(Slot, T)>
[src]Search for a key with any blockhash Prefer get_status for performance reasons, it doesn’t need to search all blockhashes.
pub fn add_root(&mut self, fork: Slot)
[src]
pub fn add_root(&mut self, fork: Slot)
[src]Add a known root fork. Roots are always valid ancestors. After MAX_CACHE_ENTRIES, roots are removed, and any old keys are cleared.
pub fn roots(&self) -> &HashSet<u64>
[src]
pub fn insert<K: AsRef<[u8]>>(
&mut self,
transaction_blockhash: &Hash,
key: &K,
slot: Slot,
res: T
)
[src]
pub fn insert<K: AsRef<[u8]>>(
&mut self,
transaction_blockhash: &Hash,
key: &K,
slot: Slot,
res: T
)
[src]Insert a new key for a specific slot.
pub fn purge_roots(&mut self)
[src]
pub fn slot_deltas(&self, slots: &[Slot]) -> Vec<SlotDelta<T>>
[src]
pub fn append(&mut self, slot_deltas: &[SlotDelta<T>])
[src]
pub fn from_slot_deltas(slot_deltas: &[SlotDelta<T>]) -> Self
[src]
Trait Implementations
impl<T: Serialize + Clone> AbiExample for StatusCache<T>
[src]
impl<T: Serialize + Clone> AbiExample for StatusCache<T>
[src]impl<T: Clone + Serialize> Clone for StatusCache<T>
[src]
impl<T: Clone + Serialize> Clone for StatusCache<T>
[src]fn clone(&self) -> StatusCache<T>
[src]
fn clone(&self) -> StatusCache<T>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<T: Serialize + Clone> Default for StatusCache<T>
[src]
impl<T: Serialize + Clone> Default for StatusCache<T>
[src]Auto Trait Implementations
impl<T> RefUnwindSafe for StatusCache<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for StatusCache<T> where
T: Send,
T: Send,
impl<T> Sync for StatusCache<T> where
T: Send + Sync,
T: Send + Sync,
impl<T> Unpin for StatusCache<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for StatusCache<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> AbiExample for T
[src]
impl<T> AbiExample for T
[src]impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,