Struct solana_bucket_map::bucket_map::BucketMap
source · [−]pub struct BucketMap<T: Clone + Copy + Debug> {
pub stats: Arc<BucketMapStats>,
pub temp_dir: Option<TempDir>,
/* private fields */
}
Fields
stats: Arc<BucketMapStats>
temp_dir: Option<TempDir>
Implementations
Get the values for Pubkey key
Delete the Pubkey key
Update Pubkey key
’s value with ‘value’
pub fn try_insert(
&self,
key: &Pubkey,
value: (&[T], RefCount)
) -> Result<(), BucketMapError>
pub fn try_insert(
&self,
key: &Pubkey,
value: (&[T], RefCount)
) -> Result<(), BucketMapError>
Update Pubkey key
’s value with ‘value’
Update Pubkey key
’s value with function updatefn