Union esp_idf_hal::sys::mesh_event_info_t
source · #[repr(C)]
pub union mesh_event_info_t {
Show 19 fields
pub channel_switch: mesh_event_channel_switch_t,
pub child_connected: wifi_event_ap_staconnected_t,
pub child_disconnected: wifi_event_ap_stadisconnected_t,
pub routing_table: mesh_event_routing_table_change_t,
pub connected: mesh_event_connected_t,
pub disconnected: wifi_event_sta_disconnected_t,
pub no_parent: mesh_event_no_parent_found_t,
pub layer_change: mesh_event_layer_change_t,
pub toDS_state: u32,
pub vote_started: mesh_event_vote_started_t,
pub root_addr: mesh_addr_t,
pub switch_req: mesh_event_root_switch_req_t,
pub root_conflict: mesh_event_root_conflict_t,
pub root_fixed: mesh_event_root_fixed_t,
pub scan_done: mesh_event_scan_done_t,
pub network_state: mesh_event_network_state_t,
pub find_network: mesh_event_find_network_t,
pub router_switch: wifi_event_sta_connected_t,
pub ps_duty: mesh_event_ps_duty_t,
}
Expand description
@brief Mesh event information
Fields§
§channel_switch: mesh_event_channel_switch_t
< channel switch
child_connected: wifi_event_ap_staconnected_t
< child connected
child_disconnected: wifi_event_ap_stadisconnected_t
< child disconnected
routing_table: mesh_event_routing_table_change_t
< routing table change
connected: mesh_event_connected_t
< parent connected
disconnected: wifi_event_sta_disconnected_t
< parent disconnected
no_parent: mesh_event_no_parent_found_t
< no parent found
layer_change: mesh_event_layer_change_t
< layer change
toDS_state: u32
< toDS state, devices shall check this state firstly before trying to send packets to external IP network. This state indicates right now whether the root is capable of sending packets out. If not, devices had better to wait until this state changes to be MESH_TODS_REACHABLE.
vote_started: mesh_event_vote_started_t
< vote started
root_addr: mesh_addr_t
< root address
switch_req: mesh_event_root_switch_req_t
< root switch request
root_conflict: mesh_event_root_conflict_t
< other powerful root
root_fixed: mesh_event_root_fixed_t
< fixed root
scan_done: mesh_event_scan_done_t
< scan done
network_state: mesh_event_network_state_t
< network state, such as whether current mesh network has a root.
find_network: mesh_event_find_network_t
< network found that can join
router_switch: wifi_event_sta_connected_t
< new router information
ps_duty: mesh_event_ps_duty_t
< PS duty information
Trait Implementations§
source§impl Clone for mesh_event_info_t
impl Clone for mesh_event_info_t
source§fn clone(&self) -> mesh_event_info_t
fn clone(&self) -> mesh_event_info_t
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 Default for mesh_event_info_t
impl Default for mesh_event_info_t
source§fn default() -> mesh_event_info_t
fn default() -> mesh_event_info_t
Returns the “default value” for a type. Read more
impl Copy for mesh_event_info_t
Auto Trait Implementations§
impl Freeze for mesh_event_info_t
impl RefUnwindSafe for mesh_event_info_t
impl Send for mesh_event_info_t
impl Sync for mesh_event_info_t
impl Unpin for mesh_event_info_t
impl UnwindSafe for mesh_event_info_t
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
)