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::LogInfo;
pub use log::LogLevel;
pub use log::LogListener;
pub use log::LogSubscription;
pub use log::LogType;
pub use log::OpenNetLogger;
pub use net_status::IpStack;
pub use net_status::MonitorState;
pub use net_status::NetStatusClient;
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.
subscription
Owned state observations and callback subscriptions shared by all 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.