pub struct WpaControlMessage<'a> {
pub raw: &'a str,
}
Expand description
Message.
Fields§
§raw: &'a str
Raw content of message
Implementations§
Source§impl<'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> Freeze for WpaControlMessage<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more