pub enum ConnectionEvent {
PushReply {
ifconfig: Option<(String, String)>,
routes: Vec<(String, String)>,
dns: Vec<String>,
gateway: Option<String>,
redirect_gateway: bool,
},
Connected {
tun_name: String,
},
Error(String),
}Expand description
Events emitted during a VPN connection lifecycle.
Consumers (like the NetworkManager plugin) can receive these events to learn about push reply data (IP, routes, DNS) before the data plane starts.
Variants§
PushReply
The server sent a PUSH_REPLY with network configuration.
Fields
Connected
TUN device was created and data plane is starting.
Error(String)
An error occurred during connection.
Trait Implementations§
Source§impl Clone for ConnectionEvent
impl Clone for ConnectionEvent
Source§fn clone(&self) -> ConnectionEvent
fn clone(&self) -> ConnectionEvent
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 moreAuto Trait Implementations§
impl Freeze for ConnectionEvent
impl RefUnwindSafe for ConnectionEvent
impl Send for ConnectionEvent
impl Sync for ConnectionEvent
impl Unpin for ConnectionEvent
impl UnsafeUnpin for ConnectionEvent
impl UnwindSafe for ConnectionEvent
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