Skip to main content

Module api

Module api 

Source
Expand description

Public types and entry points for open-net.

This module groups configuration, error handling, logging, network-status monitoring, and transport clients. Most items are re-exported at the crate root so applications can use stable, concise import paths.

Re-exports§

pub use config::OpenNetConfig;
pub use error::BoxError;
pub use error::EnqueueError;
pub use error::NetError;
pub use error::Result;
pub use log::LogDropStats;
pub use log::LogInfo;
pub use log::LogLevel;
pub use log::LogListener;
pub use log::LogSubscription;
pub use log::LogSubscriptionOptions;
pub use log::LogType;
pub use log::OpenNetLogger;
pub use log::SharedLogListener;
pub use net_status::DefaultRouteState;
pub use net_status::InterfaceAddressFamily;
pub use net_status::InterfaceEvent;
pub use net_status::InterfaceEventKind;
pub use net_status::InterfaceEventOptions;
pub use net_status::InterfaceEventSource;
pub use net_status::IpStack;
pub use net_status::MonitorState;
pub use net_status::NetStatusClient;
pub use net_status::NetworkEvent;
pub use net_status::NetworkEventKind;
pub use net_status::NetworkEventOptions;
pub use net_status::NetworkIpStackSource;
pub use net_status::NetworkNameObserver;
pub use net_status::NetworkNameOptions;
pub use net_status::NetworkNameSnapshot;
pub use net_status::NetworkNameSource;
pub use net_status::NetworkNameState;
pub use net_status::NetworkObservation;
pub use net_status::NetworkRefreshResult;
pub use net_status::NetworkSnapshot;
pub use net_status::NetworkStatus;
pub use ws::WebSocketClient;

Modules§

config
Engine configuration that is available independently of transport features.
error
Structured failures with explicit classification and retained error sources.
log
Callback-based logging API.
net_status
Shared network monitoring with versioned snapshots and owned subscriptions.
network
Network configuration and local-address discovery helpers.
retry
Shared retry schedules, decisions and observations.
subscription
Owned state observations and callback subscriptions shared by all transports.
tls
Cryptography shared by the rustls HTTP and WebSocket transports.
ws
WebSocket session API and owned value types.

Structs§

Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
HeaderMap
A specialized multimap for header names and values.
HeaderName
Represents an HTTP header field name
HeaderValue
Represents an HTTP header field value.
OpenNet
Top-level networking engine that owns runtime workers and named client instances.
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).

Type Aliases§

Metadata
String metadata associated with a request, event, or diagnostic record.