pub struct LogTailerConfig {
pub directory: Utf8PathBuf,
pub pattern: String,
pub max_batch_size: usize,
pub max_batch_latency: Duration,
pub checkpoint_name: Option<String>,
pub poll_watcher: Option<Duration>,
pub tail: bool,
}Expand description
Configuration for constructing a single-consumer LogTailer.
Fields§
§directory: Utf8PathBuf§pattern: String§max_batch_size: usize§max_batch_latency: Duration§checkpoint_name: Option<String>§poll_watcher: Option<Duration>§tail: boolImplementations§
Source§impl LogTailerConfig
impl LogTailerConfig
pub fn new(directory: Utf8PathBuf) -> Self
pub fn pattern(self, pattern: impl Into<String>) -> Self
pub fn max_batch_size(self, size: usize) -> Self
pub fn max_batch_latency(self, latency: Duration) -> Self
pub fn checkpoint_name(self, name: impl Into<String>) -> Self
pub fn poll_watcher(self, interval: Duration) -> Self
pub fn tail(self, enable: bool) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogTailerConfig
impl<'de> Deserialize<'de> for LogTailerConfig
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
Auto Trait Implementations§
impl Freeze for LogTailerConfig
impl RefUnwindSafe for LogTailerConfig
impl Send for LogTailerConfig
impl Sync for LogTailerConfig
impl Unpin for LogTailerConfig
impl UnwindSafe for LogTailerConfig
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more