Struct sharded_slab::DefaultConfig
source · pub struct DefaultConfig { /* private fields */ }
Expand description
Default slab configuration values.
Trait Implementations§
source§impl Clone for DefaultConfig
impl Clone for DefaultConfig
source§fn clone(&self) -> DefaultConfig
fn clone(&self) -> DefaultConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Config for DefaultConfig
impl Config for DefaultConfig
source§const INITIAL_PAGE_SIZE: usize = 32usize
const INITIAL_PAGE_SIZE: usize = 32usize
The size of the first page in each shard. Read more
source§const MAX_THREADS: usize = 4_096usize
const MAX_THREADS: usize = 4_096usize
The maximum number of threads which can access the slab. Read more
source§const MAX_PAGES: usize = 32usize
const MAX_PAGES: usize = 32usize
The maximum number of pages in each shard in the slab. Read more
source§const RESERVED_BITS: usize = 0usize
const RESERVED_BITS: usize = 0usize
Sets a number of high-order bits in each index which are reserved from
user code. Read more
source§impl Debug for DefaultConfig
impl Debug for DefaultConfig
impl Copy for DefaultConfig
Auto Trait Implementations§
impl Freeze for DefaultConfig
impl RefUnwindSafe for DefaultConfig
impl Send for DefaultConfig
impl Sync for DefaultConfig
impl Unpin for DefaultConfig
impl UnwindSafe for DefaultConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)