pub struct Settings {
pub lockin: Lockin,
pub net: NetSettings,
}
Fields§
§lockin: Lockin
§net: NetSettings
Implementations§
Trait Implementations§
source§impl AppSettings for Settings
impl AppSettings for Settings
source§fn new(net: NetSettings) -> Self
fn new(net: NetSettings) -> Self
Construct the settings given known network settings.
source§fn net(&self) -> &NetSettings
fn net(&self) -> &NetSettings
Get the network settings from the application settings.
source§impl<'de> TreeDeserialize<'de, 3> for Settings
impl<'de> TreeDeserialize<'de, 3> for Settings
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 an node by keys. Read more
source§impl TreeKey<3> for Settings
impl TreeKey<3> for Settings
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>>
Call a function for each node on the path described by keys. 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 indices<'a, K, I>(keys: K, indices: I) -> Result<usize, Error<()>>
fn indices<'a, K, I>(keys: K, indices: I) -> Result<usize, Error<()>>
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>where
P: Write,
fn iter_paths<P>(separator: &str) -> PathIter<'_, Self, Y, P>where
P: Write,
Create an iterator of all possible paths. Read more
source§fn iter_paths_unchecked<P>(separator: &str) -> PathIter<'_, Self, Y, P>where
P: Write,
fn iter_paths_unchecked<P>(separator: &str) -> PathIter<'_, Self, Y, P>where
P: Write,
Create an unchecked iterator of all possible paths. Read more
source§fn iter_indices() -> IndexIter<Self, Y>
fn iter_indices() -> IndexIter<Self, Y>
Create an iterator of all possible indices. Read more
source§fn iter_indices_unchecked() -> IndexIter<Self, Y>
fn iter_indices_unchecked() -> IndexIter<Self, Y>
Create an unchecked iterator of all possible indices. Read more
source§fn iter_packed() -> PackedIter<Self, Y>
fn iter_packed() -> PackedIter<Self, Y>
Create an iterator of all packed indices. Read more
source§fn iter_packed_unchecked() -> PackedIter<Self, Y>
fn iter_packed_unchecked() -> PackedIter<Self, Y>
Create an iterator of all packed indices. Read more
source§impl TreeSerialize<3> for Settings
impl TreeSerialize<3> for Settings
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 RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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 Twhere
T: TreeSerialize<Y> + TreeDeserialize<'de, Y>,
impl<'de, T, const Y: usize> JsonCoreSlash<'de, Y> for Twhere
T: TreeSerialize<Y> + TreeDeserialize<'de, Y>,
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