pub struct MeshConfig {
pub default_ttl: u8,
pub relay_enabled: bool,
pub relay_broadcast: bool,
pub min_relay_rssi: i16,
pub neighbor_lifetime: u32,
pub seen_lifetime: u32,
}Expand description
Mesh routing configuration
Fields§
§default_ttl: u8Default TTL for new messages
relay_enabled: boolWhether to relay messages
relay_broadcast: boolWhether to relay broadcast messages
min_relay_rssi: i16Minimum RSSI to consider for relay (-dBm)
neighbor_lifetime: u32Neighbor table lifetime (ticks)
seen_lifetime: u32Seen cache lifetime (ticks)
Implementations§
Source§impl MeshConfig
impl MeshConfig
Trait Implementations§
Source§impl Clone for MeshConfig
impl Clone for MeshConfig
Source§fn clone(&self) -> MeshConfig
fn clone(&self) -> MeshConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MeshConfig
impl Debug for MeshConfig
Source§impl Default for MeshConfig
impl Default for MeshConfig
impl Copy for MeshConfig
Auto Trait Implementations§
impl Freeze for MeshConfig
impl RefUnwindSafe for MeshConfig
impl Send for MeshConfig
impl Sync for MeshConfig
impl Unpin for MeshConfig
impl UnsafeUnpin for MeshConfig
impl UnwindSafe for MeshConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more