#[non_exhaustive]#[repr(i32)]pub enum EventType {
Show 16 variants
Up = 0,
Down = 1,
RouteUp = 2,
IpChange = 3,
TlsVerify = 4,
AuthUserPassVerify = 5,
ClientConnect = 6,
ClientDisconnect = 7,
LearnAddress = 8,
ClientConnectV2 = 9,
TlsFinal = 10,
EnablePf = 11,
RoutePredown = 12,
ClientConnectDefer = 13,
ClientConnectDeferV2 = 14,
ClientCrresponse = 15,
}
Expand description
All the events that an OpenVPN plugin can register for and get notified about.
This is a Rust representation of the constants named OPENVPN_PLUGIN_*
in openvpn-plugin.h
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Up = 0
Down = 1
RouteUp = 2
IpChange = 3
TlsVerify = 4
AuthUserPassVerify = 5
ClientConnect = 6
ClientDisconnect = 7
LearnAddress = 8
ClientConnectV2 = 9
TlsFinal = 10
EnablePf = 11
RoutePredown = 12
ClientConnectDefer = 13
ClientConnectDeferV2 = 14
ClientCrresponse = 15
Trait Implementations§
impl Copy for EventType
impl Eq for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations§
impl Freeze for EventType
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnwindSafe for EventType
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