pub struct FileGlobalConfig {
pub delay_ms: u64,
pub initial_delay_ms: u64,
pub read_timeout_ms: u64,
pub write_timeout_ms: u64,
}Expand description
Global configuration for File component. Supports serde deserialization with defaults and builder methods. These are the fallback defaults when URI params are not set.
Fields§
§delay_ms: u64§initial_delay_ms: u64§read_timeout_ms: u64§write_timeout_ms: u64Implementations§
Source§impl FileGlobalConfig
impl FileGlobalConfig
pub fn new() -> Self
pub fn with_delay_ms(self, v: u64) -> Self
pub fn with_initial_delay_ms(self, v: u64) -> Self
pub fn with_read_timeout_ms(self, v: u64) -> Self
pub fn with_write_timeout_ms(self, v: u64) -> Self
Trait Implementations§
Source§impl Clone for FileGlobalConfig
impl Clone for FileGlobalConfig
Source§fn clone(&self) -> FileGlobalConfig
fn clone(&self) -> FileGlobalConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FileGlobalConfig
impl Debug for FileGlobalConfig
Source§impl Default for FileGlobalConfig
impl Default for FileGlobalConfig
Source§impl<'de> Deserialize<'de> for FileGlobalConfigwhere
FileGlobalConfig: Default,
impl<'de> Deserialize<'de> for FileGlobalConfigwhere
FileGlobalConfig: 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 FileGlobalConfig
impl PartialEq for FileGlobalConfig
Source§fn eq(&self, other: &FileGlobalConfig) -> bool
fn eq(&self, other: &FileGlobalConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FileGlobalConfig
Auto Trait Implementations§
impl Freeze for FileGlobalConfig
impl RefUnwindSafe for FileGlobalConfig
impl Send for FileGlobalConfig
impl Sync for FileGlobalConfig
impl Unpin for FileGlobalConfig
impl UnsafeUnpin for FileGlobalConfig
impl UnwindSafe for FileGlobalConfig
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