pub struct NetworkConfig {
pub channel: u8,
pub tx_power: Option<i8>,
pub replace_other: bool,
}Expand description
The network formed on first start. After that the network file in the data directory is the source of truth.
Fields§
§channel: u8Channel, 11 to 26.
tx_power: Option<i8>Transmit power in dBm, if not the firmware’s default.
replace_other: boolLeave a different network found on the coordinator and form this one. Off by default: a coordinator with another network is never wiped without being told to.
Trait Implementations§
Source§impl Clone for NetworkConfig
impl Clone for NetworkConfig
Source§impl Debug for NetworkConfig
impl Debug for NetworkConfig
Source§impl Default for NetworkConfig
impl Default for NetworkConfig
Source§impl<'de> Deserialize<'de> for NetworkConfigwhere
NetworkConfig: Default,
impl<'de> Deserialize<'de> for NetworkConfigwhere
NetworkConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NetworkConfig
impl RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnsafeUnpin for NetworkConfig
impl UnwindSafe for NetworkConfig
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