Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

Struct

ControlCenterColor

pub struct ControlCenterColor {
    pub red: u8,
    pub green: u8,
    pub blue: u8,
}
Expand description

An RGB background color requested by an app for the collapsed Control Center. The Control Center chooses the foreground color; apps cannot control it.

Fields

red: u8green: u8blue: u8

Implementations

impl ControlCenterColor

pub const fn new(red: u8, green: u8, blue: u8) -> Self

Permission: not needed

Trait Implementations

impl Clone for ControlCenterColor

fn clone(&self) -> ControlCenterColor

Returns a duplicate of the value. Read more
1.0.0

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl Debug for ControlCenterColor

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

impl PartialEq for ControlCenterColor

fn eq(&self, other: &ControlCenterColor) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

impl Copy for ControlCenterColor

impl Eq for ControlCenterColor

impl StructuralPartialEq for ControlCenterColor

Auto Trait Implementations

impl Freeze for ControlCenterColor

impl RefUnwindSafe for ControlCenterColor

impl Send for ControlCenterColor

impl Sync for ControlCenterColor

impl Unpin for ControlCenterColor

impl UnsafeUnpin for ControlCenterColor

impl UnwindSafe for ControlCenterColor