pub struct JournalFileOptions {
pub seal: Option<SealOptions>,
/* private fields */
}Fields§
§seal: Option<SealOptions>Implementations§
Source§impl JournalFileOptions
impl JournalFileOptions
pub fn new(machine_id: Uuid, _boot_id: Uuid, seqnum_id: Uuid) -> Self
Sourcepub fn with_optimized_buckets(
self,
previous_utilization: Option<BucketUtilization>,
max_file_size: Option<u64>,
) -> Self
pub fn with_optimized_buckets( self, previous_utilization: Option<BucketUtilization>, max_file_size: Option<u64>, ) -> Self
Creates options with bucket sizes optimized based on previous utilization
pub fn with_window_size(self, size: u64) -> Self
pub fn with_data_hash_table_buckets(self, buckets: usize) -> Self
pub fn with_field_hash_table_buckets(self, buckets: usize) -> Self
pub fn with_keyed_hash(self, enabled: bool) -> Self
pub fn with_file_id(self, file_id: Uuid) -> Self
pub fn with_compression(self, compression: Compression) -> Self
pub fn with_compress_threshold(self, threshold: usize) -> Self
pub fn with_compact(self, compact: bool) -> Self
pub fn with_file_mode(self, mode: u32) -> Self
pub fn with_seal(self, seal: SealOptions) -> Self
pub fn compression(&self) -> Compression
pub fn compress_threshold(&self) -> usize
pub fn compact(&self) -> bool
pub fn file_mode(&self) -> u32
pub fn create<M: MemoryMapMut>(self, file: &File) -> Result<JournalFile<M>>
Trait Implementations§
Source§impl Clone for JournalFileOptions
impl Clone for JournalFileOptions
Auto Trait Implementations§
impl Freeze for JournalFileOptions
impl RefUnwindSafe for JournalFileOptions
impl Send for JournalFileOptions
impl Sync for JournalFileOptions
impl Unpin for JournalFileOptions
impl UnsafeUnpin for JournalFileOptions
impl UnwindSafe for JournalFileOptions
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