Struct EnergyScanParameters
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§
§impl Clone for EnergyScanParameters
impl Clone for EnergyScanParameters
§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 more§impl Debug for EnergyScanParameters
impl Debug for EnergyScanParameters
§impl<D> Decode<EnergyScanParameters, D> for EnergyScanParameterswhere
D: ResourceDialect,
impl<D> Decode<EnergyScanParameters, D> for EnergyScanParameterswhere
D: ResourceDialect,
§fn new_empty() -> EnergyScanParameters
fn new_empty() -> EnergyScanParameters
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for EnergyScanParameters
impl Default for EnergyScanParameters
§fn default() -> EnergyScanParameters
fn default() -> EnergyScanParameters
§impl<D> Encode<EnergyScanParameters, D> for &EnergyScanParameterswhere
D: ResourceDialect,
impl<D> Encode<EnergyScanParameters, D> for &EnergyScanParameterswhere
D: ResourceDialect,
§impl PartialEq for EnergyScanParameters
impl PartialEq for EnergyScanParameters
§impl TypeMarker for EnergyScanParameters
impl TypeMarker for EnergyScanParameters
§type Owned = EnergyScanParameters
type Owned = EnergyScanParameters
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§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.§impl ValueTypeMarker for EnergyScanParameters
impl ValueTypeMarker for EnergyScanParameters
§type Borrowed<'a> = &'a EnergyScanParameters
type Borrowed<'a> = &'a EnergyScanParameters
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<EnergyScanParameters as TypeMarker>::Owned,
) -> <EnergyScanParameters as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<EnergyScanParameters as TypeMarker>::Owned, ) -> <EnergyScanParameters as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.