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 duplicate 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 = 32
const INITIAL_PAGE_SIZE: usize = 32
The size of the first page in each shard. Read more
Source§const MAX_THREADS: usize = 4096
const MAX_THREADS: usize = 4096
The maximum number of threads which can access the slab. Read more
Source§const RESERVED_BITS: usize = 0
const RESERVED_BITS: usize = 0
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