pub struct OwnedEmbeddedShard { /* private fields */ }Expand description
Owned shard for slot-range workers.
This is the no-mutex execution path: one worker thread owns this shard and
accesses its FlatMap directly.
Implementations§
Source§impl OwnedEmbeddedShard
impl OwnedEmbeddedShard
pub fn shard_id(&self) -> usize
pub fn get_ref_no_ttl_hashed( &mut self, key_hash: u64, key: &[u8], ) -> Option<&[u8]>
pub fn set_hashed_no_ttl<K, V>(&mut self, key_hash: u64, key: K, value: V)
pub fn set_slice_hashed_no_ttl( &mut self, key_hash: u64, key: &[u8], value: &[u8], )
pub fn get_session_ref_hashed_no_ttl( &mut self, session_prefix: &[u8], key_hash: u64, key: &[u8], ) -> Option<&[u8]>
pub fn get_ref_hashed_session_or_flat( &mut self, key_hash: u64, key: &[u8], now_ms: u64, ) -> Option<&[u8]>
pub fn get_ref_hashed_published_session_or_flat( &mut self, key_hash: u64, key: &[u8], now_ms: u64, ) -> Option<&[u8]>
pub fn get_ref_hashed_active_session_or_flat( &mut self, active_session_prefix: Option<&[u8]>, key_hash: u64, key: &[u8], now_ms: u64, ) -> Option<&[u8]>
pub fn get_ref_hashed_active_session_or_no_ttl_flat( &mut self, active_session_prefix: Option<&[u8]>, key_hash: u64, key: &[u8], ) -> Option<&[u8]>
pub fn set_session_slice_hashed_no_ttl( &mut self, session_prefix: &[u8], key_hash: u64, key: &[u8], value: &[u8], )
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for OwnedEmbeddedShard
impl RefUnwindSafe for OwnedEmbeddedShard
impl Send for OwnedEmbeddedShard
impl Sync for OwnedEmbeddedShard
impl Unpin for OwnedEmbeddedShard
impl UnsafeUnpin for OwnedEmbeddedShard
impl UnwindSafe for OwnedEmbeddedShard
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