pub enum MetricSource {
File(PathBuf),
Cmd(Vec<String>),
}Expand description
Where a custom metric’s value comes from, resolved.
Variants§
File(PathBuf)
The size of this file in bytes. Relative to tak.toml until
Subject::anchor makes it absolute; never relative to dir.
Cmd(Vec<String>)
Run once, untimed, after the subject’s samples, in its dir and
env; see crate::measure::custom_metric.
Trait Implementations§
Source§impl Clone for MetricSource
impl Clone for MetricSource
Source§impl Debug for MetricSource
impl Debug for MetricSource
Source§impl PartialEq for MetricSource
impl PartialEq for MetricSource
impl StructuralPartialEq for MetricSource
Auto Trait Implementations§
impl Freeze for MetricSource
impl RefUnwindSafe for MetricSource
impl Send for MetricSource
impl Sync for MetricSource
impl Unpin for MetricSource
impl UnsafeUnpin for MetricSource
impl UnwindSafe for MetricSource
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