Skip to main content

AccessPoint

Struct AccessPoint 

Source
pub struct AccessPoint {
Show 13 fields pub flags: Property<NM80211ApFlags>, pub wpa_flags: Property<NM80211ApSecurityFlags>, pub rsn_flags: Property<NM80211ApSecurityFlags>, pub ssid: Property<Ssid>, pub frequency: Property<u32>, pub bssid: Property<NetworkIdentifier>, pub mode: Property<NM80211Mode>, pub max_bitrate: Property<u32>, pub bandwidth: Property<u32>, pub strength: Property<u8>, pub last_seen: Property<i32>, pub security: Property<SecurityType>, pub is_hidden: Property<bool>, /* private fields */
}
Expand description

WiFi access point representation.

Provides information about a detected WiFi access point including its security configuration, signal strength, frequency, and identification. Access points are discovered and monitored through the WiFi device interface.

Fields§

§flags: Property<NM80211ApFlags>

Flags describing the capabilities of the access point. See NM80211ApFlags.

§wpa_flags: Property<NM80211ApSecurityFlags>

Flags describing the access point’s capabilities according to WPA (Wifi Protected Access). See NM80211ApSecurityFlags.

§rsn_flags: Property<NM80211ApSecurityFlags>

Flags describing the access point’s capabilities according to the RSN (Robust Secure Network) protocol. See NM80211ApSecurityFlags.

§ssid: Property<Ssid>

The Service Set Identifier identifying the access point. The Ssid is a binary array to support non-UTF-8 Ssids.

§frequency: Property<u32>

The radio channel frequency in use by the access point, in MHz.

§bssid: Property<NetworkIdentifier>

The hardware address (Bssid) of the access point.

§mode: Property<NM80211Mode>

Describes the operating mode of the access point.

§max_bitrate: Property<u32>

The maximum bitrate this access point is capable of, in kilobits/second (Kb/s).

§bandwidth: Property<u32>

The bandwidth announced by the access point in MHz.

§strength: Property<u8>

The current signal quality of the access point, in percent.

§last_seen: Property<i32>

The timestamp (in CLOCK_BOOTTIME seconds) for the last time the access point was found in scan results. A value of -1 means the access point has never been found in scan results.

§security: Property<SecurityType>

Simplified security type derived from flags.

Provides a user-friendly classification of the AP’s security.

§is_hidden: Property<bool>

Whether this is a hidden network (non-broadcasting Ssid).

Implementations§

Source§

impl AccessPoint

Source

pub fn object_path(&self) -> &OwnedObjectPath

Returns the D-Bus object path for this access point.

Trait Implementations§

Source§

impl Clone for AccessPoint

Source§

fn clone(&self) -> AccessPoint

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AccessPoint

Source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ModelMonitoring for AccessPoint

Source§

type Error = Error

Error type for monitoring operations.
Source§

async fn start_monitoring(self: Arc<Self>) -> Result<(), Self::Error>

Starts monitoring for state changes with shared ownership. Read more
Source§

impl PartialEq for AccessPoint

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Reactive for AccessPoint

Source§

type Context<'a> = AccessPointParams<'a>

Context type for static fetching.
Source§

type LiveContext<'a> = LiveAccessPointParams<'a>

Context type for live monitoring.
Source§

type Error = Error

Error type for reactive operations.
Source§

async fn get(params: Self::Context<'_>) -> Result<Self, Self::Error>

Fetches a static snapshot without monitoring.
Source§

async fn get_live( params: Self::LiveContext<'_>, ) -> Result<Arc<Self>, Self::Error>

Fetches with live monitoring and reactive updates.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more