pub struct TailMetrics {
pub tail: String,
pub truncated: bool,
pub observed_bytes: u64,
pub included_bytes: u64,
}Expand description
Metrics returned by JobDir::read_tail_metrics.
Bundles the tail content together with the byte counts used in the
run snapshot and tail JSON responses, so that both callers share
the same calculation logic.
Fields§
§tail: StringThe tail text (lossy UTF-8, last N lines / max_bytes).
truncated: boolWhether the content was truncated by bytes or lines constraints.
observed_bytes: u64Total file size in bytes (0 if the file does not exist).
included_bytes: u64Number of bytes included in tail.
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