pub struct StatusResponse {
pub title: Option<String>,
pub timestamp: Option<u64>,
pub updated: Option<String>,
pub clients: Vec<ConnectedClient>,
pub routes: Vec<RoutingEntry>,
pub global_stats: Vec<(String, String)>,
}Expand description
Parsed server-mode status response.
Contains the connected client list, routing table, and global stats. Works with V1 (comma-separated), V2 (comma with headers), and V3 (tab-delimited) formats.
Fields§
§title: Option<String>Title line (e.g. "OpenVPN 2.6.8 x86_64-pc-linux-gnu").
Present in V2/V3, absent in V1.
timestamp: Option<u64>Unix timestamp of the status snapshot. Present in V2/V3, absent in V1.
updated: Option<String>Human-readable update time (e.g. "2024-03-21 14:30:00").
Present in V1 (Updated,...) and V2/V3 (TIME,...,...).
clients: Vec<ConnectedClient>Connected clients.
routes: Vec<RoutingEntry>Routing table entries.
global_stats: Vec<(String, String)>Global stats as key-value pairs (e.g. ("Max bcast/mcast queue length", "3")).
Trait Implementations§
Source§impl Clone for StatusResponse
impl Clone for StatusResponse
Source§fn clone(&self) -> StatusResponse
fn clone(&self) -> StatusResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatusResponse
impl Debug for StatusResponse
impl Eq for StatusResponse
Source§impl PartialEq for StatusResponse
impl PartialEq for StatusResponse
impl StructuralPartialEq for StatusResponse
Auto Trait Implementations§
impl Freeze for StatusResponse
impl RefUnwindSafe for StatusResponse
impl Send for StatusResponse
impl Sync for StatusResponse
impl Unpin for StatusResponse
impl UnsafeUnpin for StatusResponse
impl UnwindSafe for StatusResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more