pub struct FileBackendConfig {
pub async_threads: Option<bool>,
pub ioop_delay: Option<i64>,
pub sync: Option<SyncConfig>,
}
Expand description
Configuration for local file system access.
JSON schema
{
"description": "Configuration for local file system access.",
"type": "object",
"properties": {
"async_threads": {
"description": "Whether to use background threads for file I/O.\n\nBackground threads should improve performance, but they can reduce\nperformance if too few cores are available. This is provided for\ndebugging and fine-tuning and should ordinarily be left unset.",
"type": [
"boolean",
"null"
]
},
"ioop_delay": {
"description": "Per-I/O operation sleep duration, in milliseconds.\n\nThis is for simulating slow storage devices. Do not use this in\nproduction.",
"type": [
"integer",
"null"
],
"format": "int64",
"minimum": 0.0
},
"sync": {
"allOf": [
{
"$ref": "#/components/schemas/SyncConfig"
}
]
}
}
}
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<i64>
Per-I/O operation sleep duration, in milliseconds.
This is for simulating slow storage devices. Do not use this in production.
sync: Option<SyncConfig>
Implementations§
Source§impl FileBackendConfig
impl FileBackendConfig
pub fn builder() -> FileBackendConfig
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<'de> Deserialize<'de> for FileBackendConfig
impl<'de> Deserialize<'de> for FileBackendConfig
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 From<&FileBackendConfig> for FileBackendConfig
impl From<&FileBackendConfig> for FileBackendConfig
Source§fn from(value: &FileBackendConfig) -> Self
fn from(value: &FileBackendConfig) -> Self
Converts to this type from the input type.
Source§impl From<FileBackendConfig> for FileBackendConfig
impl From<FileBackendConfig> for FileBackendConfig
Source§fn from(value: FileBackendConfig) -> Self
fn from(value: FileBackendConfig) -> Self
Converts to this type from the input type.
Source§impl Serialize for FileBackendConfig
impl Serialize for FileBackendConfig
Source§impl TryFrom<FileBackendConfig> for FileBackendConfig
impl TryFrom<FileBackendConfig> for FileBackendConfig
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: FileBackendConfig) -> Result<Self, ConversionError>
fn try_from(value: FileBackendConfig) -> Result<Self, ConversionError>
Performs the conversion.
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