#[repr(u32)]pub enum LedType {
NumLock = 1,
CapsLock = 2,
ScrollLock = 3,
Compose = 4,
Kana = 5,
UnknownOrdinal_(u32),
}Expand description
An LedType represents an LED on a device that can be turned on or off. When applicable, the definition of each LED is derived from one of the following sources albeit with a Fuchsia-specific numeric value:
- USB HID usage codes for usage page 0x0008 (LED)
Variants§
Trait Implementations§
Source§impl<'a, ___E> Encode<LedType, ___E> for &'a LedTypewhere
___E: ?Sized,
impl<'a, ___E> Encode<LedType, ___E> for &'a LedTypewhere
___E: ?Sized,
Source§impl<___E> Encode<LedType, ___E> for LedTypewhere
___E: ?Sized,
impl<___E> Encode<LedType, ___E> for LedTypewhere
___E: ?Sized,
Source§impl FromWireRef<LedType> for LedType
impl FromWireRef<LedType> for LedType
Source§fn from_wire_ref(wire: &LedType) -> LedType
fn from_wire_ref(wire: &LedType) -> LedType
Converts the given reference to this type.
Source§impl Ord for LedType
impl Ord for LedType
Source§impl PartialOrd for LedType
impl PartialOrd for LedType
impl Copy for LedType
impl Eq for LedType
impl StructuralPartialEq for LedType
Auto Trait Implementations§
impl Freeze for LedType
impl RefUnwindSafe for LedType
impl Send for LedType
impl Sync for LedType
impl Unpin for LedType
impl UnsafeUnpin for LedType
impl UnwindSafe for LedType
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, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]