pub struct CompactConfig {
pub min_used_ratio: u8,
pub compact_blob_size: usize,
pub max_compact_size: usize,
pub layers_to_compact: usize,
pub blobs_dir: String,
}Fields§
§min_used_ratio: u8rebuild blobs whose used_ratio < min_used_ratio used_ratio = (compress_size of all chunks which are referenced by bootstrap) / blob_compress_size available value: 0-99, 0 means disable hint: it’s better to disable this option when there are some shared blobs for example: build-cache
compact_blob_size: usizewe compact blobs whose size are less than compact_blob_size
max_compact_size: usizesize of compacted blobs should not be larger than max_compact_size
layers_to_compact: usizeif number of blobs >= layers_to_compact, do compact 0 means always try compact
blobs_dir: Stringlocal blobs dir, may haven’t upload to backend yet what’s more, new blobs will output to this dir name of blob file should be equal to blob_id
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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