Skip to main content

Actions

Trait Actions 

Source
pub trait Actions: Send + Sync {
    // Required methods
    fn prefer(&self, id: &ConnectionId) -> Result<()>;
    fn forget(&self, id: &ConnectionId) -> Result<()>;
    fn reconnect(&self, id: &ConnectionId) -> Result<()>;
    fn set_autoconnect(&self, id: &ConnectionId, on: bool) -> Result<()>;
}
Expand description

Write operations on connections (requires NetworkManager or similar).

Required Methods§

Source

fn prefer(&self, id: &ConnectionId) -> Result<()>

Activate the connection identified by id.

Source

fn forget(&self, id: &ConnectionId) -> Result<()>

Delete the connection profile identified by id.

Source

fn reconnect(&self, id: &ConnectionId) -> Result<()>

Deactivate and then reactivate the connection identified by id.

Source

fn set_autoconnect(&self, id: &ConnectionId, on: bool) -> Result<()>

Enable or disable autoconnect for the connection identified by id.

Implementors§