Struct wpa_ctrl::WpaControllerBuilder
source · [−]Expand description
Client builder
Fields
root: &'a str
Folder where to look up wpa_supplicant’s interfaces.
read_timeout: Option<Duration>
Read timeout for responses.
Implementations
sourceimpl WpaControllerBuilder<'static>
impl WpaControllerBuilder<'static>
sourceimpl<'a> WpaControllerBuilder<'a>
impl<'a> WpaControllerBuilder<'a>
sourcepub const fn set_root<'b>(self, new: &'b str) -> WpaControllerBuilder<'b>
pub const fn set_root<'b>(self, new: &'b str) -> WpaControllerBuilder<'b>
Changes root folder
sourcepub const fn set_read_timeout(self, read_timeout: Option<Duration>) -> Self
pub const fn set_read_timeout(self, read_timeout: Option<Duration>) -> Self
Changes read_timeout
If None, then block indefinitely, otherwise return error on timeout.
This library handles timeout error, returning None
response
Trait Implementations
sourceimpl<'a> Clone for WpaControllerBuilder<'a>
impl<'a> Clone for WpaControllerBuilder<'a>
sourcefn clone(&self) -> WpaControllerBuilder<'a>
fn clone(&self) -> WpaControllerBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for WpaControllerBuilder<'a>
impl<'a> Debug for WpaControllerBuilder<'a>
impl<'a> Copy for WpaControllerBuilder<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for WpaControllerBuilder<'a>
impl<'a> Send for WpaControllerBuilder<'a>
impl<'a> Sync for WpaControllerBuilder<'a>
impl<'a> Unpin for WpaControllerBuilder<'a>
impl<'a> UnwindSafe for WpaControllerBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more