1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#[derive(Debug)] pub struct Options { pub block_size: usize, pub buffer_size: usize, pub pad_size: usize, pub magic: u64, } impl Default for Options { fn default() -> Self { Options { block_size: 4096, buffer_size: 1_048_576, pad_size: 8, magic: 0x3405_0d23_e85c_9e3au64, } } }