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 Forget for MetricSource
impl Freeze for MetricSource
impl Move for MetricSource
impl RefUnwindSafe for MetricSource
impl Send for MetricSourcewhere
RawVecInner: Send,
impl Sync for MetricSourcewhere
RawVecInner: Sync,
impl Unpin for MetricSource
impl UnsafeUnpin for MetricSourcewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for MetricSourcewhere
RawVecInner: UnwindSafe,
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