Skip to main content

Crate open_net

Crate open_net 

Source

Re-exports§

pub use api::config;
pub use api::error;
pub use api::net_status;
pub use api::network;
pub use api::subscription;
pub use api::ws;
pub use api::WebSocketClient;
pub use api::BoxError;
pub use api::EnqueueError;
pub use api::IpStack;
pub use api::LogInfo;
pub use api::LogLevel;
pub use api::LogListener;
pub use api::LogSubscription;
pub use api::LogType;
pub use api::Logger;
pub use api::Metadata;
pub use api::MonitorState;
pub use api::NetError;
pub use api::NetStatusClient;
pub use api::NetworkSnapshot;
pub use api::NetworkStatus;
pub use api::OpenNet;
pub use api::OpenNetConfig;
pub use api::Result;

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 a E 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 R 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 S record. Use LogType::WSC; "function", "a|b", a, b for a typed record. The legacy form without a type uses LogType::Engine.
log_t
Emits a T 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.).