pub enum PreferencePatch {
Lang(Lang),
Welcomed(bool),
Panel(bool),
Tier(Tier),
Appearance(Appearance),
Proxying(Proxying),
Chord(Chord),
CorePriority(CorePriority),
CorePlacement(CorePlacement),
RunMemory(Option<NonZeroU64>),
Tags(SessionTags),
Theme(ThemeOverride),
}Expand description
One named change to PreferencesAnswer.
A closed set of named changes rather than a whole record, so two screens settling different facts cannot overwrite each other, and so a frame that names a fact this build does not keep is refused at the boundary rather than merged.
Variants§
Lang(Lang)
Welcomed(bool)
Panel(bool)
Tier(Tier)
Appearance(Appearance)
Proxying(Proxying)
Chord(Chord)
Rebind one action, or return it to the chord this build ships by
sending an empty spelled.
CorePriority(CorePriority)
Whether the core’s threads stand above normal. Lands in the
file’s [core] section, not in [ui] (crates/wire/spec/Command/Step.lean §8-61).
CorePlacement(CorePlacement)
RunMemory(Option<NonZeroU64>)
Tags(SessionTags)
Replace one session’s tags with these; an empty set removes them
(crates/wire/spec/Preference.lean §8-84).
Theme(ThemeOverride)
Replace the colour override; the empty value returns to the
built-in theme (crates/wire/spec/Preference.lean D29).
Trait Implementations§
Source§impl Clone for PreferencePatch
impl Clone for PreferencePatch
Source§impl Debug for PreferencePatch
impl Debug for PreferencePatch
Source§impl<'de> Deserialize<'de> for PreferencePatch
impl<'de> Deserialize<'de> for PreferencePatch
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 PreferencePatch
Source§impl PartialEq for PreferencePatch
impl PartialEq for PreferencePatch
Source§impl Serialize for PreferencePatch
impl Serialize for PreferencePatch
impl StructuralPartialEq for PreferencePatch
Auto Trait Implementations§
impl Freeze for PreferencePatch
impl RefUnwindSafe for PreferencePatch
impl Send for PreferencePatch
impl Sync for PreferencePatch
impl Unpin for PreferencePatch
impl UnsafeUnpin for PreferencePatch
impl UnwindSafe for PreferencePatch
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