pub struct LocalStorageConfig {
pub flush_attempt_threshold: usize,
pub flush_threshold: usize,
}Fields§
§flush_attempt_threshold: usizeSoft threshold for flushing. Will flush automatically only if global buffer is available at the moment.
Default: 32KB
flush_threshold: usizeMax capacity of the thread-local storage buffer in bytes. After reaching this threshold, the buffer will be flushed to the global storage. Thread will be blocked until the flushing operation is finished.
Default: 1MB
Implementations§
Trait Implementations§
Source§impl Clone for LocalStorageConfig
impl Clone for LocalStorageConfig
Source§fn clone(&self) -> LocalStorageConfig
fn clone(&self) -> LocalStorageConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalStorageConfig
impl Debug for LocalStorageConfig
Source§impl Default for LocalStorageConfig
impl Default for LocalStorageConfig
impl Copy for LocalStorageConfig
Auto Trait Implementations§
impl Freeze for LocalStorageConfig
impl RefUnwindSafe for LocalStorageConfig
impl Send for LocalStorageConfig
impl Sync for LocalStorageConfig
impl Unpin for LocalStorageConfig
impl UnwindSafe for LocalStorageConfig
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