pub enum Command {
Snapshot(SnapshotArgs),
Serve(ServeArgs),
Names,
}Expand description
Sub-command of the monitor CLI.
Variants§
Snapshot(SnapshotArgs)
snapshot — starts the runtime, collects metrics for
--duration, prints registry content.
Serve(ServeArgs)
serve — starts the runtime + HTTP server on --addr for
--duration (or until SIGINT).
Names
names — prints known metric names with HELP texts.
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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