pub struct BatchSpec {
pub destination: BatchDestination,
pub follow: bool,
pub poll_interval: Duration,
}Fields§
§destination: BatchDestination§follow: boolWhen true, after the initial pass keep polling the source for new bytes and append matching lines until SIGTERM/SIGHUP arrives.
poll_interval: DurationPoll cadence for follow mode. 250 ms matches the interactive loop.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BatchSpec
impl RefUnwindSafe for BatchSpec
impl Send for BatchSpec
impl Sync for BatchSpec
impl Unpin for BatchSpec
impl UnsafeUnpin for BatchSpec
impl UnwindSafe for BatchSpec
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