pub struct HeadMetrics {
pub head: String,
pub observed_bytes: u64,
pub included_bytes: u64,
pub range: [u64; 2],
}Expand description
Metrics for the head slice of a log file.
Fields§
§head: StringThe head text (lossy UTF-8, first max_bytes bytes).
observed_bytes: u64Total file size in bytes (0 if the file does not exist).
included_bytes: u64Number of bytes included in head.
range: [u64; 2]Raw byte range [begin, end) represented by the returned text.
Auto Trait Implementations§
impl Freeze for HeadMetrics
impl RefUnwindSafe for HeadMetrics
impl Send for HeadMetrics
impl Sync for HeadMetrics
impl Unpin for HeadMetrics
impl UnsafeUnpin for HeadMetrics
impl UnwindSafe for HeadMetrics
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