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. Plain Rust, no serde, with Default impl 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 · 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 PartialEq for FileGlobalConfig
impl PartialEq for FileGlobalConfig
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