pub struct NetSettings {
pub broker: Leaf<String<255>>,
pub id: Leaf<String<23>>,
pub ip: Leaf<String<15>>,
pub mac: EthernetAddress,
}
Expand description
Settings that are used for configuring the network interface to Stabilizer.
Fields§
§broker: Leaf<String<255>>
The broker domain name (or IP address) to use for MQTT connections.
id: Leaf<String<23>>
The MQTT ID to use upon connection with a broker.
ip: Leaf<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 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<(), Error<D::Error>>where
K: Keys,
D: Deserializer<'de>,
fn deserialize_by_key<K, D>(
&mut self,
keys: K,
de: D,
) -> Result<(), Error<D::Error>>where
K: Keys,
D: Deserializer<'de>,
Deserialize a leaf node by its keys. Read more
Source§fn probe_by_key<K, D>(keys: K, de: D) -> Result<(), Error<D::Error>>where
K: Keys,
D: Deserializer<'de>,
fn probe_by_key<K, D>(keys: K, de: D) -> Result<(), Error<D::Error>>where
K: Keys,
D: Deserializer<'de>,
Blind deserialize a leaf node by its keys. Read more
Source§impl TreeKey for NetSettings
impl TreeKey for NetSettings
Source§fn traverse_all<W: Walk>() -> W
fn traverse_all<W: Walk>() -> W
Walk metadata about all paths. Read more
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§impl TreeSerialize for NetSettings
impl TreeSerialize for NetSettings
Source§fn serialize_by_key<K, S>(
&self,
keys: K,
ser: S,
) -> Result<S::Ok, Error<S::Error>>where
K: Keys,
S: Serializer,
fn serialize_by_key<K, S>(
&self,
keys: K,
ser: S,
) -> Result<S::Ok, 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, M> ForwardCompat<T, M> for T
impl<T, M> ForwardCompat<T, M> for T
§impl<T> ReverseCompat<T> for T
impl<T> ReverseCompat<T> for T
§fn reverse(self) -> Reverse<T>
fn reverse(self) -> Reverse<T>
Create an e-h-c wrapper around and e-h object Available methods depend on the wrapped type
§fn reverse_cell(self) -> Reverse<RefCell<T>>
fn reverse_cell(self) -> Reverse<RefCell<T>>
Create an e-h-c reverse compatibility wrapper using a ref-cell for interior mutability (required for InputPin types)