Struct esp_idf_sys::mesh_assoc_t
source · [−]#[repr(C, packed)]pub struct mesh_assoc_t {Show 31 fields
pub eid: u8,
pub len: u8,
pub oui: [u8; 3],
pub type_: u8,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub mesh_type: u8,
pub mesh_id: [u8; 6],
pub layer_cap: u8,
pub layer: u8,
pub assoc_cap: u8,
pub assoc: u8,
pub leaf_cap: u8,
pub leaf_assoc: u8,
pub root_cap: u16,
pub self_cap: u16,
pub layer2_cap: u16,
pub scan_ap_num: u16,
pub rssi: i8,
pub router_rssi: i8,
pub flag: u8,
pub rc_addr: [u8; 6],
pub rc_rssi: i8,
pub vote_addr: [u8; 6],
pub vote_rssi: i8,
pub vote_ttl: u8,
pub votes: u16,
pub my_votes: u16,
pub reason: u8,
pub child: [u8; 6],
pub toDS: u8,
}
Expand description
@brief Mesh networking IE
Fields
eid: u8
< element ID
len: u8
< element length
oui: [u8; 3]
< organization identifier */ /**< mesh networking IE content
type_: u8
_bitfield_align_1: [u8; 0]
_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
mesh_type: u8
< mesh device type
mesh_id: [u8; 6]
< mesh ID
layer_cap: u8
< max layer
layer: u8
< current layer
assoc_cap: u8
< max connections of mesh AP
assoc: u8
< current connections
leaf_cap: u8
< leaf capacity
leaf_assoc: u8
< the number of current connected leaf
root_cap: u16
< root capacity
self_cap: u16
< self capacity
layer2_cap: u16
< layer2 capacity
scan_ap_num: u16
< the number of scanning APs
rssi: i8
< RSSI of the parent
router_rssi: i8
< RSSI of the router
flag: u8
< flag of networking
rc_addr: [u8; 6]
< root address
rc_rssi: i8
< root RSSI
vote_addr: [u8; 6]
< voter address
vote_rssi: i8
< vote RSSI of the router
vote_ttl: u8
< vote ttl
votes: u16
< votes
my_votes: u16
< my votes
reason: u8
< reason
child: [u8; 6]
< child address
toDS: u8
< toDS state
Implementations
sourceimpl mesh_assoc_t
impl mesh_assoc_t
pub fn encrypted(&self) -> u8
pub fn set_encrypted(&mut self, val: u8)
pub fn version(&self) -> u8
pub fn set_version(&mut self, val: u8)
pub fn new_bitfield_1(
encrypted: u8,
version: u8
) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations
sourceimpl Clone for mesh_assoc_t
impl Clone for mesh_assoc_t
sourcefn clone(&self) -> mesh_assoc_t
fn clone(&self) -> mesh_assoc_t
Returns a copy of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for mesh_assoc_t
impl Debug for mesh_assoc_t
sourceimpl Default for mesh_assoc_t
impl Default for mesh_assoc_t
sourcefn default() -> mesh_assoc_t
fn default() -> mesh_assoc_t
Returns the “default value” for a type. Read more
impl Copy for mesh_assoc_t
Auto Trait Implementations
impl RefUnwindSafe for mesh_assoc_t
impl Send for mesh_assoc_t
impl Sync for mesh_assoc_t
impl Unpin for mesh_assoc_t
impl UnwindSafe for mesh_assoc_t
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more