pub struct RateConfig {
pub phy_mode: PhyMode,
pub rate: WifiPhyRate,
pub ersu: bool,
pub dcm: bool,
}Available on crate features
esp-now and unstable only.Expand description
Rate Config
§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.
Fields§
§phy_mode: PhyModePhy mode
rate: WifiPhyRateThe rate
ersu: boolUsing ERSU to send frame, ERSU is a transmission mode related to 802.11 ax. ERSU is always used in long distance transmission, and its frame has lower rate compared with SU mode
dcm: boolUsing dcm rate to send frame
Trait Implementations§
Source§impl Clone for RateConfig
impl Clone for RateConfig
Source§fn clone(&self) -> RateConfig
fn clone(&self) -> RateConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RateConfig
impl Debug for RateConfig
Source§impl Format for RateConfig
impl Format for RateConfig
Source§impl Hash for RateConfig
impl Hash for RateConfig
Source§impl PartialEq for RateConfig
impl PartialEq for RateConfig
impl Copy for RateConfig
impl Eq for RateConfig
impl StructuralPartialEq for RateConfig
Auto Trait Implementations§
impl Freeze for RateConfig
impl RefUnwindSafe for RateConfig
impl Send for RateConfig
impl Sync for RateConfig
impl Unpin for RateConfig
impl UnsafeUnpin for RateConfig
impl UnwindSafe for RateConfig
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)