pub struct ChannelInfo {
pub index: Option<u16>,
pub id: Option<String>,
pub max_transmit_power_dbm: Option<i8>,
pub spectrum_center_frequency_hz: Option<u64>,
pub spectrum_bandwidth_hz: Option<u64>,
pub masked_by_regulatory_domain: Option<bool>,
/* private fields */
}Fields§
§index: Option<u16>The index used by the interface to identify this channel.
id: Option<String>Human-readable identifier for channel.
For most network types, this is just the string representation of the index. However, some network types might have non-integer ways of identifying specific channels. This field allows the application to display the name of the channel correctly under such circumstances.
The allowed characters include:
- Dash (
-), Underscore (_), Plus(+), Semicolon(:) - Numbers (
0-9) - Letters (
a-z,A-Z)
max_transmit_power_dbm: Option<i8>The maximum transmit power allowed on this channel, in dBm.
spectrum_center_frequency_hz: Option<u64>The center RF frequency of this channel, in Hz.
For example, 802.15.4 has the following values:
| Channel | Center Frequency (Hz) |
|---|---|
| 11 | 2,405,000,000 |
| 12 | 2,410,000,000 |
| 13 | 2,415,000,000 |
| 14 | 2,420,000,000 |
| 15 | 2,425,000,000 |
| 16 | 2,430,000,000 |
| 17 | 2,435,000,000 |
| 18 | 2,440,000,000 |
| 19 | 2,445,000,000 |
| 20 | 2,450,000,000 |
| 21 | 2,455,000,000 |
| 22 | 2,460,000,000 |
| 23 | 2,465,000,000 |
| 24 | 2,470,000,000 |
| 25 | 2,475,000,000 |
| 26 | 2,480,000,000 |
spectrum_bandwidth_hz: Option<u64>The RF spectrum bandwidth used by this channel where the power level is expected to be higher than -20dBr, in Hz.
For example, 802.15.4 channels 11 thru 26 would have the value 2,000,000 (2 MHz).
masked_by_regulatory_domain: Option<bool>Indicates if this channel is masked by the current regulatory domain and is thus unable to be used.
Trait Implementations§
Source§impl Clone for ChannelInfo
impl Clone for ChannelInfo
Source§impl Debug for ChannelInfo
impl Debug for ChannelInfo
Source§impl<D: ResourceDialect> Decode<ChannelInfo, D> for ChannelInfo
impl<D: ResourceDialect> Decode<ChannelInfo, D> for ChannelInfo
Source§impl Default for ChannelInfo
impl Default for ChannelInfo
Source§impl<D: ResourceDialect> Encode<ChannelInfo, D> for &ChannelInfo
impl<D: ResourceDialect> Encode<ChannelInfo, D> for &ChannelInfo
Source§impl PartialEq for ChannelInfo
impl PartialEq for ChannelInfo
impl Persistable for ChannelInfo
impl StructuralPartialEq for ChannelInfo
Source§impl TypeMarker for ChannelInfo
impl TypeMarker for ChannelInfo
Source§type Owned = ChannelInfo
type Owned = ChannelInfo
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.Source§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 moreSource§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 ChannelInfo
impl ValueTypeMarker for ChannelInfo
Source§type Borrowed<'a> = &'a ChannelInfo
type Borrowed<'a> = &'a ChannelInfo
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read more