pub enum PreAllocatedAccountMapEntry<T: IndexValue> {
Entry(Arc<AccountMapEntryInner<T>>),
Raw((Slot, T)),
}
Expand description
can be used to pre-allocate structures for insertion into accounts index outside of lock
Variants
Entry(Arc<AccountMapEntryInner<T>>)
Raw((Slot, T))
Implementations
sourceimpl<T: IndexValue> PreAllocatedAccountMapEntry<T>
impl<T: IndexValue> PreAllocatedAccountMapEntry<T>
sourcepub fn new(
slot: Slot,
account_info: T,
storage: &Arc<BucketMapHolder<T>>,
store_raw: bool
) -> PreAllocatedAccountMapEntry<T>
pub fn new(
slot: Slot,
account_info: T,
storage: &Arc<BucketMapHolder<T>>,
store_raw: bool
) -> PreAllocatedAccountMapEntry<T>
create an entry that is equivalent to this process:
- new empty (refcount=0, slot_list={})
- update(slot, account_info) This code is called when the first entry [ie. (slot,account_info)] for a pubkey is inserted into the index.
pub fn into_account_map_entry(
self,
storage: &Arc<BucketMapHolder<T>>
) -> Arc<AccountMapEntryInner<T>>
Trait Implementations
sourceimpl<T: IndexValue> From<PreAllocatedAccountMapEntry<T>> for (Slot, T)
impl<T: IndexValue> From<PreAllocatedAccountMapEntry<T>> for (Slot, T)
sourcefn from(source: PreAllocatedAccountMapEntry<T>) -> (Slot, T)
fn from(source: PreAllocatedAccountMapEntry<T>) -> (Slot, T)
Converts to this type from the input type.
sourceimpl<T: IndexValue> ZeroLamport for PreAllocatedAccountMapEntry<T>
impl<T: IndexValue> ZeroLamport for PreAllocatedAccountMapEntry<T>
fn is_zero_lamport(&self) -> bool
Auto Trait Implementations
impl<T> RefUnwindSafe for PreAllocatedAccountMapEntry<T> where
T: RefUnwindSafe,
impl<T> Send for PreAllocatedAccountMapEntry<T>
impl<T> Sync for PreAllocatedAccountMapEntry<T>
impl<T> Unpin for PreAllocatedAccountMapEntry<T> where
T: Unpin,
impl<T> UnwindSafe for PreAllocatedAccountMapEntry<T> where
T: UnwindSafe,
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