pub struct OpenvpnConfig {
pub remote_host: Ipv4Address,
pub remote_port: u16,
pub protocol: TransportProto,
pub cipher: CipherAlgorithm,
pub auth: AuthAlgorithm,
pub compress: Compression,
pub tls_auth_key: Option<[u8; 64]>,
pub dev_type: TunnelType,
}Expand description
OpenVPN client/server configuration
Fields§
§remote_host: Ipv4AddressRemote server address
remote_port: u16Remote server port
protocol: TransportProtoTransport protocol (UDP or TCP)
cipher: CipherAlgorithmData channel cipher
auth: AuthAlgorithmAuthentication algorithm (for non-AEAD ciphers)
compress: CompressionCompression method
tls_auth_key: Option<[u8; 64]>TLS-Auth pre-shared key (optional)
dev_type: TunnelTypeDevice type (TUN or TAP)
Trait Implementations§
Source§impl Clone for OpenvpnConfig
impl Clone for OpenvpnConfig
Source§fn clone(&self) -> OpenvpnConfig
fn clone(&self) -> OpenvpnConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenvpnConfig
impl Debug for OpenvpnConfig
Auto Trait Implementations§
impl Freeze for OpenvpnConfig
impl RefUnwindSafe for OpenvpnConfig
impl Send for OpenvpnConfig
impl Sync for OpenvpnConfig
impl Unpin for OpenvpnConfig
impl UnwindSafe for OpenvpnConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)