pub struct Zones<T, A: MemPool> { /* private fields */ }
Expand description
Memory Zones
It manages memory zones to optimally dedicate a zone to each cpu for scalability.
Implementations
sourceimpl<T, A: MemPool> Zones<T, A>
impl<T, A: MemPool> Zones<T, A>
sourcepub fn new(count: usize, offset: usize, quota: usize) -> Self
pub fn new(count: usize, offset: usize, quota: usize) -> Self
Creates a new Zones
object
count
is the number of zones (usually is the number cpus)offset
is the size of reserved memory to be allocated for metadata
Trait Implementations
Auto Trait Implementations
impl<T, A> LooseTxInUnsafe for Zones<T, A> where
T: LooseTxInUnsafe,
impl<T, A> PSafe for Zones<T, A> where
T: PSafe,
impl<T, A> PSend for Zones<T, A> where
A: PSend,
T: PSend,
impl<T, A> RefUnwindSafe for Zones<T, A> where
T: RefUnwindSafe,
impl<T, A> Send for Zones<T, A> where
A: Send,
T: Send,
impl<T, A> Sync for Zones<T, A> where
A: Sync,
T: Sync,
impl<T, A> TxInSafe for Zones<T, A> where
T: TxInSafe,
impl<T, A> TxOutSafe for Zones<T, A> where
A: TxOutSafe,
T: TxOutSafe,
impl<T, A> Unpin for Zones<T, A> where
A: Unpin,
T: Unpin,
impl<T, A> UnwindSafe for Zones<T, A> where
T: UnwindSafe,
impl<T, A> VSafe for Zones<T, A> where
A: VSafe,
T: VSafe,
Blanket Implementations
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