pub struct ActionRingConfig {
pub enabled: bool,
pub haptics: bool,
pub default: ActionRingLayout,
pub per_app: BTreeMap<String, ActionRingLayout>,
}Expand description
Per-device Actions Ring settings and application-specific layouts.
Fields§
§enabled: boolWhether ShowActionsRing opens this device’s ring.
haptics: boolWhether ring hover and activation transitions play device haptics.
default: ActionRingLayoutLayout used when the foreground application has no override.
per_app: BTreeMap<String, ActionRingLayout>Complete layout overrides keyed by foreground application identifier.
Implementations§
Source§impl ActionRingConfig
impl ActionRingConfig
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Whether this value is exactly the implicit default and can be omitted
from config.toml.
Sourcepub fn effective_layout(&self, app_id: Option<&str>) -> ActionRingLayout
pub fn effective_layout(&self, app_id: Option<&str>) -> ActionRingLayout
Resolve the complete layout for the foreground application.
Trait Implementations§
Source§impl Clone for ActionRingConfig
impl Clone for ActionRingConfig
Source§fn clone(&self) -> ActionRingConfig
fn clone(&self) -> ActionRingConfig
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 ActionRingConfig
impl Debug for ActionRingConfig
Source§impl Default for ActionRingConfig
impl Default for ActionRingConfig
Source§impl<'de> Deserialize<'de> for ActionRingConfig
impl<'de> Deserialize<'de> for ActionRingConfig
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 ActionRingConfig
Source§impl PartialEq for ActionRingConfig
impl PartialEq for ActionRingConfig
Source§impl Serialize for ActionRingConfig
impl Serialize for ActionRingConfig
impl StructuralPartialEq for ActionRingConfig
Auto Trait Implementations§
impl Freeze for ActionRingConfig
impl RefUnwindSafe for ActionRingConfig
impl Send for ActionRingConfig
impl Sync for ActionRingConfig
impl Unpin for ActionRingConfig
impl UnsafeUnpin for ActionRingConfig
impl UnwindSafe for ActionRingConfig
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.