pub struct AccessPointConfig { /* private fields */ }Expand description
Configuration for a Wi-Fi access point.
Implementations§
Source§impl AccessPointConfig
impl AccessPointConfig
Assign the given value to the ssid_hidden field.
Whether the SSID is hidden or visible.
Sourcepub fn with_channel(self, channel: u8) -> Self
pub fn with_channel(self, channel: u8) -> Self
Assign the given value to the channel field.
Sourcepub fn with_secondary_channel(self, secondary_channel: u8) -> Self
pub fn with_secondary_channel(self, secondary_channel: u8) -> Self
Assign the given value to the secondary_channel field.
Sourcepub fn with_secondary_channel_none(self) -> Self
pub fn with_secondary_channel_none(self) -> Self
Set the value of secondary_channel to None.
Sourcepub fn secondary_channel(&self) -> Option<u8>
pub fn secondary_channel(&self) -> Option<u8>
The secondary channel configuration.
Sourcepub fn with_protocols(self, protocols: EnumSet<Protocol>) -> Self
pub fn with_protocols(self, protocols: EnumSet<Protocol>) -> Self
Assign the given value to the protocols field.
Sourcepub fn protocols(&self) -> EnumSet<Protocol>
pub fn protocols(&self) -> EnumSet<Protocol>
The set of protocols supported by the access point.
Sourcepub fn with_auth_method(self, auth_method: AuthMethod) -> Self
pub fn with_auth_method(self, auth_method: AuthMethod) -> Self
Assign the given value to the auth_method field.
Sourcepub fn auth_method(&self) -> AuthMethod
pub fn auth_method(&self) -> AuthMethod
The authentication method to be used by the access point.
Sourcepub fn with_password(self, password: String) -> Self
pub fn with_password(self, password: String) -> Self
Assign the given value to the password field.
Sourcepub fn with_max_connections(self, max_connections: u16) -> Self
pub fn with_max_connections(self, max_connections: u16) -> Self
Assign the given value to the max_connections field.
Sourcepub fn max_connections(&self) -> u16
pub fn max_connections(&self) -> u16
The maximum number of connections allowed on the access point.
Sourcepub fn with_dtim_period(self, dtim_period: u8) -> Self
pub fn with_dtim_period(self, dtim_period: u8) -> Self
Assign the given value to the dtim_period field.
Sourcepub fn dtim_period(&self) -> u8
pub fn dtim_period(&self) -> u8
Dtim period of the access point (Range: 1 ~ 10).
Sourcepub fn with_beacon_timeout(self, beacon_timeout: u16) -> Self
Available on crate feature unstable only.
pub fn with_beacon_timeout(self, beacon_timeout: u16) -> Self
unstable only.Assign the given value to the beacon_timeout field.
Sourcepub fn beacon_timeout(&self) -> u16
Available on crate feature unstable only.
pub fn beacon_timeout(&self) -> u16
unstable only.Time to force deauth the STA if the SoftAP doesn’t receive any data.
Trait Implementations§
Source§impl Clone for AccessPointConfig
impl Clone for AccessPointConfig
Source§fn clone(&self) -> AccessPointConfig
fn clone(&self) -> AccessPointConfig
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccessPointConfig
impl Debug for AccessPointConfig
Source§impl Default for AccessPointConfig
impl Default for AccessPointConfig
Source§impl Format for AccessPointConfig
impl Format for AccessPointConfig
Source§impl PartialEq for AccessPointConfig
impl PartialEq for AccessPointConfig
impl Eq for AccessPointConfig
impl StructuralPartialEq for AccessPointConfig
Auto Trait Implementations§
impl Freeze for AccessPointConfig
impl RefUnwindSafe for AccessPointConfig
impl Send for AccessPointConfig
impl Sync for AccessPointConfig
impl Unpin for AccessPointConfig
impl UnwindSafe for AccessPointConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)