Struct esp_idf_svc::hal::sys::esp_now_peer_info
source · #[repr(C)]pub struct esp_now_peer_info {
pub peer_addr: [u8; 6],
pub lmk: [u8; 16],
pub channel: u8,
pub ifidx: u32,
pub encrypt: bool,
pub priv_: *mut c_void,
}
Expand description
@brief ESPNOW peer information parameters.
Fields§
§peer_addr: [u8; 6]
< ESPNOW peer MAC address that is also the MAC address of station or softap
lmk: [u8; 16]
< ESPNOW peer local master key that is used to encrypt data
channel: u8
< Wi-Fi channel that peer uses to send/receive ESPNOW data. If the value is 0, use the current channel which station or softap is on. Otherwise, it must be set as the channel that station or softap is on.
ifidx: u32
< Wi-Fi interface that peer uses to send/receive ESPNOW data
encrypt: bool
< ESPNOW data that this peer sends/receives is encrypted or not
priv_: *mut c_void
< ESPNOW peer private data
Trait Implementations§
source§impl Clone for esp_now_peer_info
impl Clone for esp_now_peer_info
source§fn clone(&self) -> esp_now_peer_info
fn clone(&self) -> esp_now_peer_info
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for esp_now_peer_info
impl Debug for esp_now_peer_info
source§impl Default for esp_now_peer_info
impl Default for esp_now_peer_info
source§fn default() -> esp_now_peer_info
fn default() -> esp_now_peer_info
Returns the “default value” for a type. Read more
impl Copy for esp_now_peer_info
Auto Trait Implementations§
impl Freeze for esp_now_peer_info
impl RefUnwindSafe for esp_now_peer_info
impl !Send for esp_now_peer_info
impl !Sync for esp_now_peer_info
impl Unpin for esp_now_peer_info
impl UnwindSafe for esp_now_peer_info
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,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)