Struct esp_idf_svc::sys::mesh_switch_parent_t
source · #[repr(C)]pub struct mesh_switch_parent_t {
pub duration_ms: i32,
pub cnx_rssi: i32,
pub select_rssi: i32,
pub switch_rssi: i32,
pub backoff_rssi: i32,
}
Expand description
@brief Mesh switch parent
Fields§
§duration_ms: i32
< parent weak RSSI monitor duration, if the RSSI continues to be weak during this duration_ms, device will search for a new parent.
cnx_rssi: i32
< RSSI threshold for keeping a good connection with parent. If set a value greater than -120 dBm, a timer will be armed to monitor parent RSSI at a period time of duration_ms.
select_rssi: i32
< RSSI threshold for parent selection. It should be a value greater than switch_rssi.
switch_rssi: i32
< Disassociate with current parent and switch to a new parent when the RSSI is greater than this set threshold.
backoff_rssi: i32
< RSSI threshold for connecting to the root
Trait Implementations§
source§impl Clone for mesh_switch_parent_t
impl Clone for mesh_switch_parent_t
source§fn clone(&self) -> mesh_switch_parent_t
fn clone(&self) -> mesh_switch_parent_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 Debug for mesh_switch_parent_t
impl Debug for mesh_switch_parent_t
source§impl Default for mesh_switch_parent_t
impl Default for mesh_switch_parent_t
source§fn default() -> mesh_switch_parent_t
fn default() -> mesh_switch_parent_t
Returns the “default value” for a type. Read more
impl Copy for mesh_switch_parent_t
Auto Trait Implementations§
impl Freeze for mesh_switch_parent_t
impl RefUnwindSafe for mesh_switch_parent_t
impl Send for mesh_switch_parent_t
impl Sync for mesh_switch_parent_t
impl Unpin for mesh_switch_parent_t
impl UnwindSafe for mesh_switch_parent_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
)