[][src]Struct cue_sdk::led::CueLed

pub struct CueLed {
    pub id: LedId,
    pub position: LedPosition,
    pub last_checked_color: Option<LedColor>,
    pub last_buffed_color: Option<LedColor>,
    // some fields omitted
}

This struct contains static information about the led (id, position, device index) as well as the last color we wrote to the color buffer, and the last color that we manually checked (confirmed read from device).

Fields

id: LedIdposition: LedPositionlast_checked_color: Option<LedColor>last_buffed_color: Option<LedColor>

Implementations

impl CueLed[src]

pub fn check_color(&mut self) -> Result<(), CheckColorError>[src]

Checks the color of a CueLed, updating the self struct instance with the new value upon success.

pub fn update_color_buffer(&mut self, new_color: LedColor) -> CueSdkErrorResult[src]

Update the iCUE SDK color buffer with a new color, and modify our last_buffed_color field if that color buffer update operation was successful.

Trait Implementations

impl Clone for CueLed[src]

impl Debug for CueLed[src]

impl PartialEq<CueLed> for CueLed[src]

impl StructuralPartialEq for CueLed[src]

Auto Trait Implementations

impl RefUnwindSafe for CueLed

impl Send for CueLed

impl Sync for CueLed

impl Unpin for CueLed

impl UnwindSafe for CueLed

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.