operations tier

operations-net-trace

Thin bounded wrapper around mtr --report --json: cited Observations from a network path trace, no verdicts

Thin bounded wrapper around mtr --report --json: cited Observations from a network path trace, no verdicts

Tieroperations
Roleunclassified (baselined)
Pathcrates/operations/net-trace
Edition2021
Targetsoperations_net_trace
Public items3 across 0 modules
Tests3

What it is for

Thin bounded wrapper around mtr --report --json: cited Observations from a network path trace, no verdicts.

Wire format verified live against real mtr output on this machine (not assumed): mtr --report --json --report-cycles 1 <target> produces {"report": {"mtr": {...}, "hubs": {"count", "host", "Loss%", "Snt", "Last", "Avg", "Best", "Wrst", "StDev"}, ...}} — a clean, typed structure (unlike Volatility3's tree-shaped renderer), so this crate deserializes into real structs rather than citing generic key=value pairs.

Capabilities

NetTraceError

Thin bounded wrapper around mtr --report --json: cited Observations from a

Item
pub enum NetTraceError
fn parse_mtr_json(stdout : & str, rule_id : & str) -> Result <Vec <Observation>, NetTraceError>
async fn trace(mtr_bin : impl Into <PathBuf>, target : & str, limits : ExecLimits,) -> Result <Vec <Observation>, NetTraceError>

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

No public modules: the crate root is its whole surface.

Public surface

`crate root`

ItemWhat it is
pub enum NetTraceErrorEvery way a trace can fail.
fn parse_mtr_json(stdout : & str, rule_id : & str) -> Result <Vec <Observation>, NetTraceError>Parse mtr --report --json stdout into cited Observations, one per hop
async fn trace(mtr_bin : impl Into <PathBuf>, target : & str, limits : ExecLimits,) -> Result <Vec <Observation>, NetTraceError>Run mtr --report --json --report-cycles 1 <target> and cite each hop

No pub use re-exports: every item above is declared in this crate.

Boundary

Reaches into foundation, infrastructure.

Shares tier operations with 40 other crates: operations-approval-workflow, operations-assessments, operations-block-imaging, operations-boot-media, operations-browser-agent-worker, operations-camera-discovery, operations-camera-liveview, operations-camera-registry, … (40 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)operations
Architectural role (taxonomy)unclassified (baselined)
Locationcrates/operations/net-trace
Vocabulary in force (lexicon)current

Tier flow. Which tiers this crate's own edges cross.

flowchart LR
  n_operations["operations"] --> n_foundation["foundation"]
  n_operations["operations"] --> n_infrastructure["infrastructure"]

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`foundation-bounded-io`foundationnoalways
`infrastructure-host-forensics`infrastructurenoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
serde^1derivenoalways
serde_json^1noalways
thiserror^2noalways

Development, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
tokio^1fullnoalways

Build. None.

Depended on by. Nothing in this workspace.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  SELF["operations-net-trace"]
  SELF -->|runtime| n_foundation_bounded_io["foundation-bounded-io"]
  SELF -->|runtime| n_infrastructure_host_forensics["infrastructure-host-forensics"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.

Targets

KindNameSource
liboperations_net_trace`src/lib.rs`

Error model

Error typeNamed by
NetTraceErrorparse_mtr_json, trace

Operational characteristics

PropertyEvidence
async public surfaceyes
async runtimenone detected
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesyes

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

VariableRead in
CARGO_MANIFEST_DIRsrc/lib.rs

No workspace crate depends on this one.

Verification

KindCount
Unit tests3
Integration tests0
Examples0
Doctests0

Evidence by module. How often each public module is named by something executable.

ModuleTestsExamplesConsumers
crate root300

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc33
Public modules with a //! block00
pie showData
    title Public items with rustdoc
    "Documented" : 3
    "No rustdoc detected" : 0

Metrics

MetricValue
Rust source files1
Source lines156
Code lines115
Public API items3
Public modules0
Tests3
Examples0
Cargo features0
Direct runtime dependencies5
Workspace reverse dependencies0
pie showData
    title Public API by kind
    "enum" : 1
    "function" : 2
pie showData
    title Rust source composition
    "Code" : 115
    "Blank or comment" : 41

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

All operations · Manual