pub struct OpenVPN3<'a> { /* private fields */ }
Expand description
OpenVPN 3 Client
Provides convenience methods for creating and managing OpenVPN tunnels.
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.
pub async fn interfaces(&'a self) -> Result<Vec<String>>
pub async fn net_cfg_manager(&'a self) -> Result<NetCfgProxy<'static>>
pub async fn event_stream(&self) -> Result<SessionManagerEventStream<'a>>
pub async fn log_stream(&self) -> Result<LogStream<'a>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for OpenVPN3<'a>
impl<'a> !RefUnwindSafe for OpenVPN3<'a>
impl<'a> Send for OpenVPN3<'a>
impl<'a> Sync for OpenVPN3<'a>
impl<'a> Unpin for OpenVPN3<'a>
impl<'a> !UnwindSafe for OpenVPN3<'a>
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