pub struct LocalEmbeddedStoreBootstrap { /* private fields */ }Expand description
Temporary container produced while partitioning an EmbeddedStore across workers.
from_embedded consumes the shared store and produces one
WorkerLocalEmbeddedStore per requested worker. Call Self::into_stores
to hand those stores to worker threads or runtimes.
Implementations§
Source§impl WorkerLocalEmbeddedStoreBootstrap
impl WorkerLocalEmbeddedStoreBootstrap
pub fn from_embedded(store: EmbeddedStore, worker_count: usize) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn into_stores(self) -> Vec<WorkerLocalEmbeddedStore>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WorkerLocalEmbeddedStoreBootstrap
impl RefUnwindSafe for WorkerLocalEmbeddedStoreBootstrap
impl Send for WorkerLocalEmbeddedStoreBootstrap
impl Sync for WorkerLocalEmbeddedStoreBootstrap
impl Unpin for WorkerLocalEmbeddedStoreBootstrap
impl UnsafeUnpin for WorkerLocalEmbeddedStoreBootstrap
impl UnwindSafe for WorkerLocalEmbeddedStoreBootstrap
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