Skip to main content

openvpn_mgmt_codec/
lib.rs

1#![doc = include_str!("../README.md")]
2#![deny(unsafe_code)]
3#![warn(missing_docs)]
4
5/// Authentication credential types and retry strategies.
6pub mod auth;
7/// Client notification event types (CONNECT, REAUTH, etc.).
8pub mod client_event;
9/// The [`OvpnCodec`] encoder/decoder implementation.
10pub mod codec;
11/// Typed management-interface commands ([`OvpnCommand`]).
12pub mod command;
13/// Client kill-target addressing.
14pub mod kill_target;
15/// Log severity levels (Info, Debug, Warning, etc.).
16pub mod log_level;
17/// Decoded messages and real-time notifications.
18pub mod message;
19/// Responses to `>NEED-OK:` prompts.
20pub mod need_ok;
21/// OpenVPN connection states (CONNECTING, CONNECTED, etc.).
22pub mod openvpn_state;
23/// Proxy configuration for `>PROXY:` responses.
24pub mod proxy_action;
25/// Remote-override actions for `>REMOTE:` responses.
26pub mod remote_action;
27/// Daemon signals (HUP, TERM, USR1, USR2).
28pub mod signal;
29/// Status output format versions (V1/V2/V3).
30pub mod status_format;
31/// Stream mode selectors (on/off/all/recent).
32pub mod stream_mode;
33/// Transport protocol (UDP, TCP) for remote/proxy notifications.
34pub mod transport_protocol;
35/// Error classification for unrecognized protocol lines.
36pub mod unrecognized;
37
38pub use auth::{AuthRetryMode, AuthType};
39pub use client_event::ClientEvent;
40pub use codec::{AccumulationLimit, OvpnCodec};
41pub use command::OvpnCommand;
42pub use kill_target::KillTarget;
43pub use log_level::LogLevel;
44pub use message::{Notification, OvpnMessage, PasswordNotification};
45pub use need_ok::NeedOkResponse;
46pub use openvpn_state::OpenVpnState;
47pub use proxy_action::ProxyAction;
48pub use remote_action::RemoteAction;
49pub use signal::Signal;
50pub use status_format::StatusFormat;
51pub use stream_mode::StreamMode;
52pub use transport_protocol::TransportProtocol;
53pub use unrecognized::UnrecognizedKind;