pub struct ArenaCfg {
pub shards: usize,
pub max_bytes: usize,
pub mode: ShardMode,
}Expand description
Arena configuration.
Stored verbatim in snapshots later, so everything that affects byte interpretation lives here.
Fields§
§shards: usizeNumber of shards; must be a non-zero power of two.
max_bytes: usizeHard ceiling for the byte pool; exceeding it fails with
Error::CapacityExceeded instead of growing.
mode: ShardModeKey-to-shard mapping mode.
Implementations§
Trait Implementations§
impl Copy for ArenaCfg
Source§impl Default for ArenaCfg
impl Default for ArenaCfg
Source§fn default() -> Self
fn default() -> Self
1024 shards, ShardMode::Uniform, unlimited bytes.
impl Eq for ArenaCfg
impl StructuralPartialEq for ArenaCfg
Auto Trait Implementations§
impl Freeze for ArenaCfg
impl RefUnwindSafe for ArenaCfg
impl Send for ArenaCfg
impl Sync for ArenaCfg
impl Unpin for ArenaCfg
impl UnsafeUnpin for ArenaCfg
impl UnwindSafe for ArenaCfg
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