Skip to main contentCrate open_net
Source pub use api::tls;pub use api::config;pub use api::error;pub use api::network;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::NetworkNameSource;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;
- api
- Public types and entry points for
open-net.
- 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. - 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.
- 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.).