Struct wlancfg_lib::client::types::ApState
source · pub struct ApState {
pub tracked: TrackedBss,
/* private fields */
}
Expand description
The state of a remote AP.
ApState
describes the configuration of a BSS to which a client is connected. The state is
comprised of an initial BSS description as well as tracked configuration. The tracked
configuration may change while a client is connected and is managed by the client state
machine. The initial BSS description is immutable.
See TrackedBss
.
Fields§
§tracked: TrackedBss
Tracked BSS configuration.
This subset of the initial BSS description is managed by the client state machine and may change while connected to an AP.
Implementations§
source§impl ApState
impl ApState
sourcepub fn original(&self) -> &BssDescription
pub fn original(&self) -> &BssDescription
Gets the initial BSS description for the AP to which a client is connected.
sourcepub fn has_changes(&self) -> bool
pub fn has_changes(&self) -> bool
Returns true
if the tracked BSS configuration differs from the initial BSS description.
Trait Implementations§
source§impl From<BssDescription> for ApState
impl From<BssDescription> for ApState
source§fn from(original: BssDescription) -> Self
fn from(original: BssDescription) -> Self
Converts to this type from the input type.
source§impl PartialEq for ApState
impl PartialEq for ApState
impl StructuralPartialEq for ApState
Auto Trait Implementations§
impl Freeze for ApState
impl RefUnwindSafe for ApState
impl Send for ApState
impl Sync for ApState
impl Unpin for ApState
impl UnwindSafe for ApState
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