pub struct EnergyScanParameters {
pub channels: Option<Vec<u16>>,
pub dwell_time_ms: Option<u32>,
/* private fields */
}
Expand description
Describes the parameters of an energy scan.
Fields§
§channels: Option<Vec<u16>>
Subset of channels to scan.
If unspecified, all channels will be scanned.
dwell_time_ms: Option<u32>
Desired dwell time per-channel for the energy scan, measured in milliseconds.
Note that firmware limitations may prevent the exact dwell time from being used. In such cases an approximation will be used.
Implementations must be able to support dwell times of at least 5000ms (5 seconds). The exact supported dwell-time range is device/driver dependent.
Setting a value outside of the supported range of values for this device will result in the value being clamped to the closest valid value, so setting a value of zero will always request the smallest energy scan duration the device is capable of.
If unspecified, a dwell time of approximately 500ms will be used.
Trait Implementations§
Source§impl Clone for EnergyScanParameters
impl Clone for EnergyScanParameters
Source§fn clone(&self) -> EnergyScanParameters
fn clone(&self) -> EnergyScanParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for EnergyScanParameters
impl Debug for EnergyScanParameters
Source§impl<D: ResourceDialect> Decode<EnergyScanParameters, D> for EnergyScanParameters
impl<D: ResourceDialect> Decode<EnergyScanParameters, D> for EnergyScanParameters
Source§impl Default for EnergyScanParameters
impl Default for EnergyScanParameters
Source§fn default() -> EnergyScanParameters
fn default() -> EnergyScanParameters
Source§impl<D: ResourceDialect> Encode<EnergyScanParameters, D> for &EnergyScanParameters
impl<D: ResourceDialect> Encode<EnergyScanParameters, D> for &EnergyScanParameters
Source§impl PartialEq for EnergyScanParameters
impl PartialEq for EnergyScanParameters
Source§impl TypeMarker for EnergyScanParameters
impl TypeMarker for EnergyScanParameters
Source§type Owned = EnergyScanParameters
type Owned = EnergyScanParameters
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for EnergyScanParameters
impl ValueTypeMarker for EnergyScanParameters
Source§type Borrowed<'a> = &'a EnergyScanParameters
type Borrowed<'a> = &'a EnergyScanParameters
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for EnergyScanParameters
impl StructuralPartialEq for EnergyScanParameters
Auto Trait Implementations§
impl Freeze for EnergyScanParameters
impl RefUnwindSafe for EnergyScanParameters
impl Send for EnergyScanParameters
impl Sync for EnergyScanParameters
impl Unpin for EnergyScanParameters
impl UnwindSafe for EnergyScanParameters
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)