pub struct NetSettings {
pub broker: String<255>,
pub id: String<23>,
pub ip: String<15>,
pub mac: EthernetAddress,
}
Expand description
Settings that are used for configuring the network interface to Stabilizer.
Fields§
§broker: String<255>
The broker domain name (or IP address) to use for MQTT connections.
id: String<23>
The MQTT ID to use upon connection with a broker.
ip: String<15>
An optional static IP address to use. An unspecified IP address (or malformed address) will use DHCP.
mac: EthernetAddress
The MAC address of Stabilizer, which is used to reinitialize the ID to default settings.
Implementations§
Source§impl NetSettings
impl NetSettings
Trait Implementations§
Source§impl Clone for NetSettings
impl Clone for NetSettings
Source§fn clone(&self) -> NetSettings
fn clone(&self) -> NetSettings
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 NetSettings
impl Debug for NetSettings
Source§impl Default for NetSettings
impl Default for NetSettings
Source§impl TreeAny for NetSettings
impl TreeAny for NetSettings
Source§fn ref_any_by_key(&self, keys: impl Keys) -> Result<&dyn Any, ValueError>
fn ref_any_by_key(&self, keys: impl Keys) -> Result<&dyn Any, ValueError>
Obtain a reference to a
dyn Any
trait object for a leaf node.Source§fn mut_any_by_key(
&mut self,
keys: impl Keys,
) -> Result<&mut dyn Any, ValueError>
fn mut_any_by_key( &mut self, keys: impl Keys, ) -> Result<&mut dyn Any, ValueError>
Obtain a mutable reference to a
dyn Any
trait object for a leaf node.§fn ref_by_key<T>(&self, keys: impl IntoKeys) -> Result<&T, ValueError>where
T: Any,
fn ref_by_key<T>(&self, keys: impl IntoKeys) -> Result<&T, ValueError>where
T: Any,
Obtain a reference to a leaf of known type by key.
§fn mut_by_key<T>(&mut self, keys: impl IntoKeys) -> Result<&mut T, ValueError>where
T: Any,
fn mut_by_key<T>(&mut self, keys: impl IntoKeys) -> Result<&mut T, ValueError>where
T: Any,
Obtain a mutable reference to a leaf of known type by key.
Source§impl<'de> TreeDeserialize<'de> for NetSettings
impl<'de> TreeDeserialize<'de> for NetSettings
Source§fn deserialize_by_key<D: Deserializer<'de>>(
&mut self,
keys: impl Keys,
de: D,
) -> Result<(), SerdeError<D::Error>>
fn deserialize_by_key<D: Deserializer<'de>>( &mut self, keys: impl Keys, de: D, ) -> Result<(), SerdeError<D::Error>>
Deserialize a leaf node by its keys. Read more
Source§fn probe_by_key<D: Deserializer<'de>>(
keys: impl Keys,
de: D,
) -> Result<(), SerdeError<D::Error>>
fn probe_by_key<D: Deserializer<'de>>( keys: impl Keys, de: D, ) -> Result<(), SerdeError<D::Error>>
Blind deserialize a leaf node by its keys. Read more
Source§impl TreeSchema for NetSettings
impl TreeSchema for NetSettings
Source§impl TreeSerialize for NetSettings
impl TreeSerialize for NetSettings
Source§fn serialize_by_key<S: Serializer>(
&self,
keys: impl Keys,
ser: S,
) -> Result<S::Ok, SerdeError<S::Error>>
fn serialize_by_key<S: Serializer>( &self, keys: impl Keys, ser: S, ) -> Result<S::Ok, SerdeError<S::Error>>
Serialize a node by keys. Read more
Auto Trait Implementations§
impl Freeze for NetSettings
impl RefUnwindSafe for NetSettings
impl Send for NetSettings
impl Sync for NetSettings
impl Unpin for NetSettings
impl UnwindSafe for NetSettings
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