pub struct ClientSettings {
pub mark: Option<String>,
pub theme: Option<String>,
pub font: Option<String>,
pub dictate: DictateAxes,
}Expand description
What the client draws with, from forge.toml by way of the server.
The client never reads the config file: [client] mark, [client] theme
and [client] font arrive here, and None on any of them means the
built-in rather than a pinned value - a commented line in a hand-authored
file has to mean “unset”.
Fields§
§mark: Option<String>§theme: Option<String>§font: Option<String>§dictate: DictateAxesThe axes a client that captures starts on and resets to: the
[dictate] keys, over the crate’s own defaults. A client that
captures sends the values in force with each take, so this is the
default it departs from rather than anything the server remembers.
Implementations§
Source§impl ClientSettings
impl ClientSettings
Sourcepub fn new(client: &ClientConfig, dictate: DictateAxes) -> Self
pub fn new(client: &ClientConfig, dictate: DictateAxes) -> Self
The client’s settings: the [client] keys off the config, and the
axes the workspace resolved.
Trait Implementations§
Source§impl Clone for ClientSettings
impl Clone for ClientSettings
Source§impl Debug for ClientSettings
impl Debug for ClientSettings
Source§impl<'de> Deserialize<'de> for ClientSettings
impl<'de> Deserialize<'de> for ClientSettings
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
impl Eq for ClientSettings
Source§impl PartialEq for ClientSettings
impl PartialEq for ClientSettings
Source§impl Serialize for ClientSettings
impl Serialize for ClientSettings
impl StructuralPartialEq for ClientSettings
Auto Trait Implementations§
impl Freeze for ClientSettings
impl RefUnwindSafe for ClientSettings
impl Send for ClientSettings
impl Sync for ClientSettings
impl Unpin for ClientSettings
impl UnsafeUnpin for ClientSettings
impl UnwindSafe for ClientSettings
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more