pub enum ClientEvent {
Connect,
Reauth,
Established,
Disconnect,
CrResponse(String),
Custom(String),
}Expand description
The sub-type of a >CLIENT: notification.
Variants§
Connect
A new client is connecting (>CLIENT:CONNECT).
Reauth
An existing client is re-authenticating (>CLIENT:REAUTH).
Established
A client connection has been fully established (>CLIENT:ESTABLISHED).
Disconnect
A client has disconnected (>CLIENT:DISCONNECT).
CrResponse(String)
A client challenge-response (>CLIENT:CR_RESPONSE,{CID},{KID},{base64}).
The base64-encoded response is carried inline because it appears as the third comma-separated field on the header line (after CID and KID), not in the ENV block. Both cedws/openvpn-mgmt-go and jkroepke/openvpn-auth-oauth2 handle this as a distinct event type.
Custom(String)
An unrecognized event type (forward compatibility).
Trait Implementations§
Source§impl Clone for ClientEvent
impl Clone for ClientEvent
Source§fn clone(&self) -> ClientEvent
fn clone(&self) -> ClientEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 ClientEvent
impl Debug for ClientEvent
Source§impl Display for ClientEvent
impl Display for ClientEvent
Source§impl PartialEq for ClientEvent
impl PartialEq for ClientEvent
impl Eq for ClientEvent
impl StructuralPartialEq for ClientEvent
Auto Trait Implementations§
impl Freeze for ClientEvent
impl RefUnwindSafe for ClientEvent
impl Send for ClientEvent
impl Sync for ClientEvent
impl Unpin for ClientEvent
impl UnsafeUnpin for ClientEvent
impl UnwindSafe for ClientEvent
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