pub struct LogConsumerConfig {
pub directory: String,
pub rotate_mode: RotateMode,
pub file_size_mb: u64,
pub file_name_prefix: String,
}Expand description
Configuration for LogConsumer, mirroring the Go SDK’s
TDLogConsumerConfig.
Fields§
§directory: StringDirectory the log files live in. Created when missing.
rotate_mode: RotateModeTime-based rotation of log files.
file_size_mb: u64Maximum size of a single log file in megabytes; 0 disables paging.
file_name_prefix: StringPrefix placed before log. in the file name.
Trait Implementations§
Source§impl Clone for LogConsumerConfig
impl Clone for LogConsumerConfig
Source§impl Debug for LogConsumerConfig
impl Debug for LogConsumerConfig
Auto Trait Implementations§
impl Forget for LogConsumerConfig
impl Freeze for LogConsumerConfig
impl Move for LogConsumerConfig
impl RefUnwindSafe for LogConsumerConfig
impl Send for LogConsumerConfig
impl Sync for LogConsumerConfig
impl Unpin for LogConsumerConfig
impl UnsafeUnpin for LogConsumerConfig
impl UnwindSafe for LogConsumerConfig
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