Skip to main content

Crate netcore

Crate netcore 

Source
Expand description

Domain types and capability traits for jip.

Users of this crate get a coherent view of a Linux host’s network: L1 kernel primitives (Link, Addr, Route, Neighbor, Socket), L2 domain concepts (Connection, Service, Path, Flow), L3 judgments (Finding, Health), and L4 capability traits that backends implement.

There is no I/O in this crate. Backends live in sibling crates.

Re-exports§

pub use connection::*;
pub use diag::*;
pub use dns::*;
pub use link::*;
pub use path::*;
pub use process::*;
pub use service::*;
pub use traits::*;

Modules§

connection
Layer 2 — what users think a network connection is.
diag
Layer 3 — judgments. A typed vocabulary for health and failure.
dns
DNS resolution results.
link
Layer 1 — thin typed wrappers over what the kernel exposes via netlink/sysfs.
path
Path — the answer to “can I reach X, and if not, where does it die?”
process
Process ownership for sockets.
service
Listening services and active flows.
traits
Layer 4 — capability traits.

Enums§

Error
Crate-wide error type. Backends wrap their own errors in Error::Backend.

Type Aliases§

Result
Convenience alias for Result<T, Error> throughout the crate.