pub struct RgbApi<P: CheckedPermissions> { /* private fields */ }Implementations§
Source§impl<P: CheckedPermissions> RgbApi<P>
impl<P: CheckedPermissions> RgbApi<P>
pub fn try_new_with_timeout(timeout: Duration) -> Option<Self>
pub fn set_all_to(&self, color: RgbColor)where
P: MessageAllowed<SetAllTo>,
pub fn set_to(&self, index: u32, color: RgbColor)where
P: MessageAllowed<SetTo>,
pub fn animate_all(&self, animation: RgbAnimation)where
P: MessageAllowed<AnimateAllTo>,
pub fn subscribe_color_updates<S>(&self, context: &mut ServerContext<S>)where
P: MessageAllowed<SubscribeColorUpdates>,
S: Server + ScalarEventHandler<RgbColor>,
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for RgbApi<P>
impl<P> RefUnwindSafe for RgbApi<P>
impl<P> Send for RgbApi<P>
impl<P> Sync for RgbApi<P>
impl<P> Unpin for RgbApi<P>
impl<P> UnwindSafe for RgbApi<P>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.