#[repr(u8)]pub enum WlanBand {
TwoGhz = 0,
FiveGhz = 1,
UnknownOrdinal_(u8),
}Expand description
Identifies a frequency band in metadata of various operations.
Examples of this enum in use are labeling scan results or reporting a driver capabilities from various frequency bands.
NOTE: This enum is similar to the Band ID field defined in IEEE Std 802.11-2016 9.4.1.46, but its values are not the same.
TODO(https://fxbug.dev/376442944): Create a spec-compliant Band ID type and migrate the platform to use it.
Variants§
Trait Implementations§
Source§impl<'a, ___E> Encode<WlanBand, ___E> for &'a WlanBandwhere
___E: ?Sized,
impl<'a, ___E> Encode<WlanBand, ___E> for &'a WlanBandwhere
___E: ?Sized,
Source§impl<___E> Encode<WlanBand, ___E> for WlanBandwhere
___E: ?Sized,
impl<___E> Encode<WlanBand, ___E> for WlanBandwhere
___E: ?Sized,
Source§impl FromWireRef<WlanBand> for WlanBand
impl FromWireRef<WlanBand> for WlanBand
Source§fn from_wire_ref(wire: &WlanBand) -> WlanBand
fn from_wire_ref(wire: &WlanBand) -> WlanBand
Converts the given reference to this type.
Source§impl Ord for WlanBand
impl Ord for WlanBand
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for WlanBand
impl PartialOrd for WlanBand
impl Copy for WlanBand
impl Eq for WlanBand
impl StructuralPartialEq for WlanBand
Auto Trait Implementations§
impl Freeze for WlanBand
impl RefUnwindSafe for WlanBand
impl Send for WlanBand
impl Sync for WlanBand
impl Unpin for WlanBand
impl UnsafeUnpin for WlanBand
impl UnwindSafe for WlanBand
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]