pub enum ProactiveTier {
Off,
WarmOnly,
WarmAndBehavior,
All,
}Expand description
GUI-facing reification of the companion’s three-layer permission toggle.
On-disk schema doesn’t change — this helper just maps between the
three independent booleans (enabled, rhythm.enabled,
proactive.enabled) and a single ordered tier. Use
ProactiveTier::from_config to read and ProactiveTier::apply
to write.
Variants§
Implementations§
Source§impl ProactiveTier
impl ProactiveTier
pub fn from_config(c: &CompanionConfig) -> Self
pub fn apply(&self, c: &mut CompanionConfig)
Trait Implementations§
Source§impl Clone for ProactiveTier
impl Clone for ProactiveTier
Source§fn clone(&self) -> ProactiveTier
fn clone(&self) -> ProactiveTier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProactiveTier
impl Debug for ProactiveTier
Source§impl<'de> Deserialize<'de> for ProactiveTier
impl<'de> Deserialize<'de> for ProactiveTier
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
Source§impl PartialEq for ProactiveTier
impl PartialEq for ProactiveTier
Source§fn eq(&self, other: &ProactiveTier) -> bool
fn eq(&self, other: &ProactiveTier) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProactiveTier
impl Serialize for ProactiveTier
impl Copy for ProactiveTier
impl Eq for ProactiveTier
impl StructuralPartialEq for ProactiveTier
Auto Trait Implementations§
impl Freeze for ProactiveTier
impl RefUnwindSafe for ProactiveTier
impl Send for ProactiveTier
impl Sync for ProactiveTier
impl Unpin for ProactiveTier
impl UnsafeUnpin for ProactiveTier
impl UnwindSafe for ProactiveTier
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.