Skip to main content

Crate open_net

Crate open_net 

Source

Re-exports§

pub use api::tls;
pub use api::config;
pub use api::error;
pub use api::network;
pub use api::retry;
pub use api::subscription;
pub use api::net_status;
pub use api::IpStack;
pub use api::MonitorState;
pub use api::NetStatusClient;
pub use api::NetworkEvent;
pub use api::NetworkEventKind;
pub use api::NetworkEventOptions;
pub use api::NetworkIpStackSource;
pub use api::NetworkNameObserver;
pub use api::NetworkNameOptions;
pub use api::NetworkNameSnapshot;
pub use api::NetworkNameSource;
pub use api::NetworkNameState;
pub use api::NetworkObservation;
pub use api::NetworkRefreshResult;
pub use api::NetworkSnapshot;
pub use api::NetworkStatus;
pub use api::ws;
pub use api::WebSocketClient;
pub use api::BoxError;
pub use api::EnqueueError;
pub use api::LogDropStats;
pub use api::LogInfo;
pub use api::LogLevel;
pub use api::LogListener;
pub use api::LogSubscription;
pub use api::LogSubscriptionOptions;
pub use api::LogType;
pub use api::Metadata;
pub use api::NetError;
pub use api::OpenNet;
pub use api::OpenNetConfig;
pub use api::OpenNetLogger;
pub use api::Result;
pub use api::SharedLogListener;

Modules§

api
Public types and entry points for open-net.

Macros§

array_to_json_string
basic_type_map_to_json_string
Converts a string-keyed map of basic serializable values to JSON.
err
impl_display_json
Implements Display for serializable types by rendering JSON.
log_e
Emits an Error record. Use LogType::WSC; "function", "a|b", a, b for a typed record. The legacy form without a type uses LogType::Engine.
log_r
Emits a Debug record. Use LogType::WSC; "function", "a|b", a, b for a typed record. The legacy form without a type uses LogType::Engine.
log_s
Emits a Debug record. Use LogType::WSC; "function", "a|b", a, b for a typed record. The legacy form without a type uses LogType::Engine. Use LogType::WSC, LogLevel::Key; "function" for a key lifecycle record.
log_t
Emits an Info record. Use LogType::WSC; "function", "a|b", a, b for a typed record. The legacy form without a type uses LogType::Engine.
obj_array_to_json_string
Converts displayable objects to a JSON-array-like string using Display.

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.
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).