pub struct Defaults {
pub text_codec: String,
pub binary_codec: String,
pub metadata_codec: String,
pub metadata_quality: u8,
pub metadata_externalize_threshold: usize,
pub shared_inline: bool,
pub seekable_drops: bool,
pub max_drop_size: u32,
pub inline_threshold: u16,
}Expand description
Default codec + quality settings.
Fields§
§text_codec: String§binary_codec: String§metadata_codec: String§metadata_quality: u8§metadata_externalize_threshold: usizeCompressed-metadata size (bytes) above which the blob is
externalized to a metadata.bin sidecar instead of inlined
in the manifest. Default: just under the reader’s 1 MiB
inline ceiling (DEFAULT_INLINE_METADATA_MAX_BYTES); raise to
that ceiling for maximally self-contained images, lower it to
keep manifests small. See limnifs#187.
Dedup identical inline file contents into the shared-inline table (issue #189). Default ; set to emit plain inline inodes readable by pre-#186 readers (cached tebako runtimes whose reserved mask rejects the SHARED_INLINE flag).
seekable_drops: boolEmit large general-codec drops (> 1 MiB plaintext) as seekable containers (256 KiB independent frames; bounded random reads). Default true. Set false for maximum compression ratio — frames give up cross-frame context (~1-3%) and windowed reads pay a full-drop decode again.
max_drop_size: u32Maximum plaintext size (bytes) of a drop the writer may emit
from a whole-file path (categorizer claims and the whole-file
fallback). Files larger than the cap fall back to FastCDC
chunking + tournament so every drop’s decode cost is bounded
by construction (EROFS fixed-output pclusters). Default
4 MiB; 0 = unlimited (pre-knob behavior). The
skip_chunking (max-write) profile is exempt — whole-file IS
its speed contract.
inline_threshold: u16Inline data threshold (bytes).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Defaults
impl<'de> Deserialize<'de> for Defaults
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Defaults
impl StructuralPartialEq for Defaults
Auto Trait Implementations§
impl Freeze for Defaults
impl RefUnwindSafe for Defaults
impl Send for Defaults
impl Sync for Defaults
impl Unpin for Defaults
impl UnsafeUnpin for Defaults
impl UnwindSafe for Defaults
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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