pub struct RotationInfo { /* private fields */ }Expand description
Metadata about a detected log file rotation.
Produced by FileTailer::take_rotation when rotation is detected
during a poll cycle.
Implementations§
Source§impl RotationInfo
impl RotationInfo
Sourcepub fn previous_file_size(&self) -> u64
pub fn previous_file_size(&self) -> u64
Returns the byte offset in the old file at the time rotation was detected.
Sourcepub fn detected_at(&self) -> DateTime<Utc>
pub fn detected_at(&self) -> DateTime<Utc>
Returns the wall-clock timestamp when rotation was detected.
Trait Implementations§
Source§impl Clone for RotationInfo
impl Clone for RotationInfo
Source§fn clone(&self) -> RotationInfo
fn clone(&self) -> RotationInfo
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 RotationInfo
impl RefUnwindSafe for RotationInfo
impl Send for RotationInfo
impl Sync for RotationInfo
impl Unpin for RotationInfo
impl UnsafeUnpin for RotationInfo
impl UnwindSafe for RotationInfo
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