pub struct FileSinkConfig {
pub path: PathBuf,
pub max_bytes: u64,
pub sync_each_write: bool,
pub retention: u8,
pub archive: Option<FileArchiveConfig>,
}Expand description
Bounded structured JSONL file configuration.
Fields§
§path: PathBufTarget JSONL file.
max_bytes: u64Maximum file bytes before rotation.
sync_each_write: boolFlush each event to storage; disable to favor throughput and OS buffering.
retention: u8Number of old files retained.
archive: Option<FileArchiveConfig>Optional bounded year/month archive for files leaving active retention.
Trait Implementations§
Source§impl Clone for FileSinkConfig
impl Clone for FileSinkConfig
Source§fn clone(&self) -> FileSinkConfig
fn clone(&self) -> FileSinkConfig
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 moreAuto Trait Implementations§
impl Freeze for FileSinkConfig
impl RefUnwindSafe for FileSinkConfig
impl Send for FileSinkConfig
impl Sync for FileSinkConfig
impl Unpin for FileSinkConfig
impl UnsafeUnpin for FileSinkConfig
impl UnwindSafe for FileSinkConfig
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