Struct readings_probe::Probe[][src]

pub struct Probe(_);
Expand description

The interface to reading probe.

Implementations

Creates a probe logging its data to Write implementation (usually a file).

Register an i64 used-defined metric.

Must be called prior to the first call to log_event or spawn_heartbeat.

The result is shared AtomicI64 that can be used by client code to share communicate updates with the probe.

TODO: type-enforce this using the Builder pattern

Spawn a thread that will record all vitals at every “interval”.

Log an individual event with a label and the current values of metrics.

Recover a pre-registered used-defined metrics from the probe.

The result is shared AtomicI64 that can be used by client code to share communicate updates with the probe.

It is more efficient for the client code to keep the shared AtomicI64 somewhere handy than calling this at every update. Nevertheless, it allows for intermediate code to just have to propagate the probe without worrying about the various metrics that the underlying code may need.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.