Struct openvpn3_rs::Session
source · pub struct Session<'a> { /* private fields */ }Implementations§
source§impl<'a> Session<'a>
impl<'a> Session<'a>
pub fn path(&'a self) -> &ObjectPath<'_>
pub async fn ready(&'a self) -> Result<()>
pub async fn connect(&'a self) -> Result<()>
pub async fn pause(&'a self, reason: &str) -> Result<()>
pub async fn resume(&'a self) -> Result<()>
pub async fn restart(&'a self) -> Result<()>
pub async fn disconnect(&'a self) -> Result<()>
pub async fn status(&'a self) -> Result<Status>
pub async fn statistics(&'a self) -> Result<Statistics>
pub async fn get_property<T>(&'a self, property_name: &str) -> Result<T>where
T: TryFrom<OwnedValue>,
T::Error: Into<Error>,
pub async fn user_input_queue_get_type_group(
&'a self
) -> Result<Vec<UserInputQueueTypeGroup>>
pub async fn user_input_queue_check(
&'a self,
qtype: ClientAttentionType,
qgroup: ClientAttentionGroup
) -> Result<Vec<u32>>
pub async fn user_input_queue_fetch(
&'a self,
qtype: ClientAttentionType,
qgroup: ClientAttentionGroup,
qid: u32
) -> Result<UserInputSlot<'a>>
pub async fn fetch_user_input_slots(&'a self) -> Result<Vec<UserInputSlot<'_>>>
pub async fn attention_required_stream(
&self
) -> Result<AttentionRequiredStream<'a>>
pub async fn status_change_stream(&self) -> Result<StatusChangeStream<'a>>
sourcepub async fn log_stream(&self) -> Result<LogStream<'a>>
pub async fn log_stream(&self) -> Result<LogStream<'a>>
Get the log stream
This should be called after the backend process is ready