Struct stabilizer::settings::NetSettings
source · 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 copy 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 KeyLookup for NetSettings
impl KeyLookup for NetSettings
source§impl TreeAny for NetSettings
impl TreeAny for NetSettings
source§fn ref_any_by_key<K>(&self, keys: K) -> Result<&dyn Any, Traversal>where
K: Keys,
fn ref_any_by_key<K>(&self, keys: K) -> Result<&dyn Any, Traversal>where
K: Keys,
Obtain a reference to a
dyn Any
trait object for a leaf node.source§fn mut_any_by_key<K>(&mut self, keys: K) -> Result<&mut dyn Any, Traversal>where
K: Keys,
fn mut_any_by_key<K>(&mut self, keys: K) -> Result<&mut dyn Any, Traversal>where
K: Keys,
Obtain a mutable reference to a
dyn Any
trait object for a leaf node.source§impl<'de> TreeDeserialize<'de> for NetSettings
impl<'de> TreeDeserialize<'de> for NetSettings
source§fn deserialize_by_key<K, D>(
&mut self,
keys: K,
de: D
) -> Result<usize, Error<D::Error>>where
K: Keys,
D: Deserializer<'de>,
fn deserialize_by_key<K, D>(
&mut self,
keys: K,
de: D
) -> Result<usize, Error<D::Error>>where
K: Keys,
D: Deserializer<'de>,
Deserialize a leaf node by its keys. Read more
source§impl TreeKey for NetSettings
impl TreeKey for NetSettings
source§fn traverse_by_key<K, F, E>(keys: K, func: F) -> Result<usize, Error<E>>
fn traverse_by_key<K, F, E>(keys: K, func: F) -> Result<usize, Error<E>>
Traverse from the root to a leaf and call a function for each node. Read more
source§fn path<K, P>(keys: K, path: P, separator: &str) -> Result<usize, Error<Error>>
fn path<K, P>(keys: K, path: P, separator: &str) -> Result<usize, Error<Error>>
Convert keys to path. Read more
source§fn json_path<K, P>(keys: K, path: P) -> Result<usize, Error<Error>>
fn json_path<K, P>(keys: K, path: P) -> Result<usize, Error<Error>>
Return the keys formatted as a normalized JSON path. Read more
source§fn indices<K>(keys: K) -> Result<([usize; Y], usize), Traversal>where
K: IntoKeys,
fn indices<K>(keys: K) -> Result<([usize; Y], usize), Traversal>where
K: IntoKeys,
Convert keys to
indices
. Read moresource§fn packed<K>(keys: K) -> Result<(Packed, usize), Error<()>>where
K: IntoKeys,
fn packed<K>(keys: K) -> Result<(Packed, usize), Error<()>>where
K: IntoKeys,
Convert keys to packed usize bitfield representation. Read more
source§fn iter_paths<P>(separator: &str) -> PathIter<'_, Self, Y, P, Y>
fn iter_paths<P>(separator: &str) -> PathIter<'_, Self, Y, P, Y>
Create an iterator of all possible leaf paths. Read more
source§fn iter_indices() -> IndexIter<Self, Y, Y>
fn iter_indices() -> IndexIter<Self, Y, Y>
Create an iterator of all possible leaf indices. Read more
source§fn iter_packed() -> PackedIter<Self, Y, Y>
fn iter_packed() -> PackedIter<Self, Y, Y>
Create an iterator of all packed leaf indices. Read more
source§impl TreeSerialize for NetSettings
impl TreeSerialize for NetSettings
source§fn serialize_by_key<K, S>(
&self,
keys: K,
ser: S
) -> Result<usize, Error<S::Error>>where
K: Keys,
S: Serializer,
fn serialize_by_key<K, S>(
&self,
keys: K,
ser: S
) -> Result<usize, Error<S::Error>>where
K: Keys,
S: Serializer,
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
source§impl<'de, T, const Y: usize> JsonCoreSlash<'de, Y> for T
impl<'de, T, const Y: usize> JsonCoreSlash<'de, Y> for T
source§fn set_json(
&mut self,
path: &str,
data: &'de [u8]
) -> Result<usize, Error<Error>>
fn set_json( &mut self, path: &str, data: &'de [u8] ) -> Result<usize, Error<Error>>
Update a node by path. Read more
source§fn get_json(&self, path: &str, data: &mut [u8]) -> Result<usize, Error<Error>>
fn get_json(&self, path: &str, data: &mut [u8]) -> Result<usize, Error<Error>>
Retrieve a serialized value by path. Read more