pub struct WriteOptions {
pub block_size: u32,
pub restart_interval: usize,
pub write_log: bool,
pub skip_index_objects: bool,
pub unpadded: bool,
pub hash_size: usize,
pub auto_compaction_factor: u8,
pub autocompaction_enabled: bool,
}Expand description
Write options for reftable creation.
Fields§
§block_size: u32Block size in bytes. 0 means use the default.
restart_interval: usizeRestart interval (number of records between restart points).
write_log: boolWhether to write log blocks.
skip_index_objects: boolSkip writing the object index (config reftable.indexObjects=false).
unpadded: boolWrite blocks without padding to the block size.
hash_size: usizeObject-id width in bytes: 20 for SHA-1 (reftable version 1), 32 for SHA-256 (reftable version 2). Defaults to SHA-1.
auto_compaction_factor: u8Geometric factor for stack auto-compaction (reftable.geometricFactor).
Defaults to 2 when unset.
autocompaction_enabled: boolWhether to run automatic stack compaction after writes (Git test knob via
Environment::reftable_autocompaction_enabled).
Trait Implementations§
Source§impl Clone for WriteOptions
impl Clone for WriteOptions
Source§impl Debug for WriteOptions
impl Debug for WriteOptions
Auto Trait Implementations§
impl Freeze for WriteOptions
impl RefUnwindSafe for WriteOptions
impl Send for WriteOptions
impl Sync for WriteOptions
impl Unpin for WriteOptions
impl UnsafeUnpin for WriteOptions
impl UnwindSafe for WriteOptions
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