pub struct TailMetrics {
pub tail: String,
pub observed_bytes: u64,
pub range: [u64; 2],
}Expand description
Metrics returned by JobDir::read_tail_metrics.
Bundles the tail content together with the raw byte ranges used in the
tail JSON responses, so that callers share the same calculation logic.
Fields§
§tail: StringThe tail text (lossy UTF-8, last N lines / max_bytes).
observed_bytes: u64Total file size in bytes (0 if the file does not exist).
range: [u64; 2]Raw byte range [begin, end) represented by the returned text.
Auto Trait Implementations§
impl Freeze for TailMetrics
impl RefUnwindSafe for TailMetrics
impl Send for TailMetrics
impl Sync for TailMetrics
impl Unpin for TailMetrics
impl UnsafeUnpin for TailMetrics
impl UnwindSafe for TailMetrics
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