[−][src]Struct cue_sdk::led::CueLed
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: LedId
position: LedPosition
last_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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,