#[non_exhaustive]pub enum VpnDetails {
WireGuard {
public_key: Option<String>,
endpoint: Option<String>,
},
OpenVpn {
remote: String,
port: u16,
protocol: String,
cipher: Option<String>,
auth: Option<String>,
compression: Option<String>,
},
}Expand description
Protocol-specific details for an active VPN connection.
Provides configuration details extracted from the NetworkManager connection profile, varying by VPN type.
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.
WireGuard
WireGuard-specific connection details.
Fields
OpenVpn
OpenVPN-specific connection details.
Fields
Trait Implementations§
Source§impl Clone for VpnDetails
impl Clone for VpnDetails
Source§fn clone(&self) -> VpnDetails
fn clone(&self) -> VpnDetails
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 moreAuto Trait Implementations§
impl Freeze for VpnDetails
impl RefUnwindSafe for VpnDetails
impl Send for VpnDetails
impl Sync for VpnDetails
impl Unpin for VpnDetails
impl UnsafeUnpin for VpnDetails
impl UnwindSafe for VpnDetails
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