Struct openvpn3_rs::OpenVPN3
source · pub struct OpenVPN3<'a> { /* private fields */ }Expand description
OpenVPN 3 Client
Provides convenience methods for creating a new OpenVPN tunnel.
Implementations§
source§impl<'a> OpenVPN3<'a>
impl<'a> OpenVPN3<'a>
sourcepub async fn configurations(&'a self) -> Result<Vec<Configuration<'a>>>
pub async fn configurations(&'a self) -> Result<Vec<Configuration<'a>>>
Fetch all available configuration profiles that are available to the user.
sourcepub async fn import<'c>(
&self,
name: &str,
config_str: &str,
single_use: bool,
persistent: bool
) -> Result<Configuration<'c>>
pub async fn import<'c>(
&self,
name: &str,
config_str: &str,
single_use: bool,
persistent: bool
) -> Result<Configuration<'c>>
Import a configuration profile.
sourcepub async fn sessions(&'a self) -> Result<Vec<Session<'a>>>
pub async fn sessions(&'a self) -> Result<Vec<Session<'a>>>
Fetch all sessions that are available to the user.