#[non_exhaustive]pub enum PowerSaveMode {
None,
Minimum,
Maximum,
}Available on crate feature
unstable only.Expand description
Power saving mode settings for the modem.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No power saving.
Minimum
Minimum power save mode. In this mode, station wakes up to receive beacon every DTIM period.
Maximum
Maximum power save mode. In this mode, interval to receive beacons is determined by the
listen_interval config option.
Trait Implementations§
Source§impl Clone for PowerSaveMode
Available on crate feature wifi only.
impl Clone for PowerSaveMode
Available on crate feature
wifi only.Source§fn clone(&self) -> PowerSaveMode
fn clone(&self) -> PowerSaveMode
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PowerSaveMode
Available on crate feature wifi only.
impl Debug for PowerSaveMode
Available on crate feature
wifi only.Source§impl Default for PowerSaveMode
Available on crate feature wifi only.
impl Default for PowerSaveMode
Available on crate feature
wifi only.Source§fn default() -> PowerSaveMode
fn default() -> PowerSaveMode
Returns the “default value” for a type. Read more
Source§impl Format for PowerSaveMode
Available on crate feature wifi only.
impl Format for PowerSaveMode
Available on crate feature
wifi only.Source§impl Hash for PowerSaveMode
Available on crate feature wifi only.
impl Hash for PowerSaveMode
Available on crate feature
wifi only.Source§impl PartialEq for PowerSaveMode
Available on crate feature wifi only.
impl PartialEq for PowerSaveMode
Available on crate feature
wifi only.impl Copy for PowerSaveMode
Available on crate feature
wifi only.impl Eq for PowerSaveMode
Available on crate feature
wifi only.impl StructuralPartialEq for PowerSaveMode
Available on crate feature
wifi only.Auto Trait Implementations§
impl Freeze for PowerSaveMode
impl RefUnwindSafe for PowerSaveMode
impl Send for PowerSaveMode
impl Sync for PowerSaveMode
impl Unpin for PowerSaveMode
impl UnwindSafe for PowerSaveMode
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
Mutably borrows from an owned value. Read more
§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)
🔬This is a nightly-only experimental API. (
clone_to_uninit)