pub struct WpaController { /* private fields */ }
Expand description

WPA controller

Implementations

Attempts to connect to WPA controller at specified path

Attempts to connect to WPA controller at specified path

Sends request, returning number of bytes written.

Attempts to receive message.

Attempts to receive reply for result of command.

This method will continuously recv skipping unsolicited messages

Result
  • Returns None if neither success or fail are present among replies.

  • Ok(()) indicates success.

  • Err(()) indicates failure.

Performs network add sequence

Arguments
  • ssid - Network identifier;
  • wpa_pass - Passkey for WPA auth, if None sets key_mgmt to None
  • hidden - Specifies whether you want to scan for SSID to connect to the network.
Result
  • Ok(id) - Newly created network id

Performs removal of known network by id.

Select a network for use by id.

Reconfigure wpa, i.e. reload wpasupplicant from saved config.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.