Struct wpa_ctrl::WpaControlMessage
source · [−]pub struct WpaControlMessage<'a> {
pub raw: &'a str,
}
Expand description
Message.
Fields
raw: &'a str
Raw content of message
Implementations
sourceimpl<'a> WpaControlMessage<'a>
impl<'a> WpaControlMessage<'a>
sourcepub const fn is_unsolicited(&self) -> bool
pub const fn is_unsolicited(&self) -> bool
Returns whether message is unsolicited response, namely it means it is not reply to request.
sourcepub fn as_success(&self) -> Option<Success>
pub fn as_success(&self) -> Option<Success>
Attempts to reinterpret message as success of request
sourcepub fn as_network_id(&self) -> Option<Id>
pub fn as_network_id(&self) -> Option<Id>
Attempts to reinterpret message as network id
sourcepub fn as_network_list(&self) -> Option<WpaNetworkList<'_>>
pub fn as_network_list(&self) -> Option<WpaNetworkList<'_>>
Attempts to reinterpret message as network id
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for WpaControlMessage<'a>
impl<'a> Send for WpaControlMessage<'a>
impl<'a> Sync for WpaControlMessage<'a>
impl<'a> Unpin for WpaControlMessage<'a>
impl<'a> UnwindSafe for WpaControlMessage<'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