pub struct FileBackendConfig {
pub async_threads: Option<bool>,
pub ioop_delay: Option<u64>,
pub sync: Option<SyncConfig>,
}Expand description
Configuration for local file system access.
Fields§
§async_threads: Option<bool>Whether to use background threads for file I/O.
Background threads should improve performance, but they can reduce performance if too few cores are available. This is provided for debugging and fine-tuning and should ordinarily be left unset.
ioop_delay: Option<u64>Per-I/O operation sleep duration, in milliseconds.
This is for simulating slow storage devices. Do not use this in production.
sync: Option<SyncConfig>Configuration to synchronize checkpoints to object store.
Trait Implementations§
Source§impl Clone for FileBackendConfig
impl Clone for FileBackendConfig
Source§fn clone(&self) -> FileBackendConfig
fn clone(&self) -> FileBackendConfig
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 FileBackendConfig
impl Debug for FileBackendConfig
Source§impl Default for FileBackendConfig
impl Default for FileBackendConfig
Source§fn default() -> FileBackendConfig
fn default() -> FileBackendConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FileBackendConfigwhere
FileBackendConfig: Default,
impl<'de> Deserialize<'de> for FileBackendConfigwhere
FileBackendConfig: Default,
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
Source§impl PartialEq for FileBackendConfig
impl PartialEq for FileBackendConfig
Source§impl Serialize for FileBackendConfig
impl Serialize for FileBackendConfig
Source§impl<'__s> ToSchema<'__s> for FileBackendConfig
impl<'__s> ToSchema<'__s> for FileBackendConfig
impl Eq for FileBackendConfig
impl StructuralPartialEq for FileBackendConfig
Auto Trait Implementations§
impl Freeze for FileBackendConfig
impl RefUnwindSafe for FileBackendConfig
impl Send for FileBackendConfig
impl Sync for FileBackendConfig
impl Unpin for FileBackendConfig
impl UnwindSafe for FileBackendConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.