pub struct SealConfig {
pub compression_level: i32,
pub target_shard_size: u64,
pub max_shard_size: u64,
pub padding: PaddingStrategy,
pub mmap_threshold: u64,
pub max_split_rounds: u8,
}Expand description
Shard sealing / compression settings.
Extracted from CoreConfig + hardcoded defaults.
Fields§
§compression_level: i32Zstd compression level (0 = no compression, 22 = max).
target_shard_size: u64Target shard size in bytes before padding.
max_shard_size: u64Hard upper bound on shard size.
padding: PaddingStrategyPadding strategy to obfuscate content sizes.
mmap_threshold: u64Files larger than this are memory-mapped instead of read into RAM.
max_split_rounds: u8Maximum number of recursive split rounds for oversized shards.
Trait Implementations§
Source§impl Clone for SealConfig
impl Clone for SealConfig
Source§fn clone(&self) -> SealConfig
fn clone(&self) -> SealConfig
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 Debug for SealConfig
impl Debug for SealConfig
Source§impl Default for SealConfig
impl Default for SealConfig
Source§impl From<&Config> for SealConfig
impl From<&Config> for SealConfig
Source§impl From<&CoreConfig> for SealConfig
impl From<&CoreConfig> for SealConfig
Source§fn from(core: &CoreConfig) -> Self
fn from(core: &CoreConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SealConfig
impl RefUnwindSafe for SealConfig
impl Send for SealConfig
impl Sync for SealConfig
impl Unpin for SealConfig
impl UnsafeUnpin for SealConfig
impl UnwindSafe for SealConfig
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more