#[non_exhaustive]pub enum OpenVpnAuthType {
Password,
Tls,
PasswordTls,
StaticKey,
}Expand description
OpenVPN authentication type.
Specifies how the client authenticates with the OpenVPN server.
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.
Password
Username/password authentication only.
Tls
TLS certificate authentication only.
PasswordTls
Both password and TLS certificate authentication.
StaticKey
Static key authentication (pre-shared key).
Trait Implementations§
Source§impl Clone for OpenVpnAuthType
impl Clone for OpenVpnAuthType
Source§fn clone(&self) -> OpenVpnAuthType
fn clone(&self) -> OpenVpnAuthType
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 OpenVpnAuthType
impl Debug for OpenVpnAuthType
Source§impl PartialEq for OpenVpnAuthType
impl PartialEq for OpenVpnAuthType
Source§fn eq(&self, other: &OpenVpnAuthType) -> bool
fn eq(&self, other: &OpenVpnAuthType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for OpenVpnAuthType
impl StructuralPartialEq for OpenVpnAuthType
Auto Trait Implementations§
impl Freeze for OpenVpnAuthType
impl RefUnwindSafe for OpenVpnAuthType
impl Send for OpenVpnAuthType
impl Sync for OpenVpnAuthType
impl Unpin for OpenVpnAuthType
impl UnsafeUnpin for OpenVpnAuthType
impl UnwindSafe for OpenVpnAuthType
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