Skip to main content

Module error

Module error 

Source
Expand description

Public error type for netscli-core.

Library consumers can pattern-match on [Error] variants instead of passing an opaque anyhow::Error around. The enum is marked #[non_exhaustive] so new categories can be added without being breaking changes — match arms should use a trailing _ => fallback.

All public functions in this crate return Result<T, Error>. A few private implementation helpers (e.g. ping’s ICMP round-trip inside PingScanner::ping) still use anyhow::Error internally because they never leak their error type to consumers, and the From<anyhow::Error> bridge would convert them to Error::Other anyway.

Enums§

Error
Errors produced by netscli-core operations.

Type Aliases§

Result
netscli-core’s public result type. Aliased so callers can write netscli_core::Result<T> without importing both.