#[repr(C)]
pub union mesh_event_info_t {
Show 19 fields pub channel_switch: mesh_event_channel_switch_t, pub child_connected: mesh_event_child_connected_t, pub child_disconnected: mesh_event_child_disconnected_t, pub routing_table: mesh_event_routing_table_change_t, pub connected: mesh_event_connected_t, pub disconnected: mesh_event_disconnected_t, pub no_parent: mesh_event_no_parent_found_t, pub layer_change: mesh_event_layer_change_t, pub toDS_state: mesh_event_toDS_state_t, pub vote_started: mesh_event_vote_started_t, pub root_addr: mesh_event_root_address_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: mesh_event_router_switch_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: mesh_event_child_connected_t

< child connected

§child_disconnected: mesh_event_child_disconnected_t

< child disconnected

§routing_table: mesh_event_routing_table_change_t

< routing table change

§connected: mesh_event_connected_t

< parent connected

§disconnected: mesh_event_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: mesh_event_toDS_state_t

< 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_event_root_address_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: mesh_event_router_switch_t

< new router information

§ps_duty: mesh_event_ps_duty_t

< PS duty information

Trait Implementations§

source§

impl Clone for mesh_event_info_t

source§

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)

Performs copy-assignment from source. Read more
source§

impl Default for mesh_event_info_t

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for mesh_event_info_t

Auto Trait Implementations§

§

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.