pub enum DeviceKind {
Show 13 variants
Unknown,
LinePower,
Battery,
Ups,
Monitor,
Mouse,
Keyboard,
Phone,
Tablet,
GamingInput,
Headset,
Headphones,
Speakers,
}Expand description
What a power device is, from UPower’s Type.
Variants§
Unknown
Not known, or a kind this list leaves out.
LinePower
A charger or other mains supply.
Battery
A laptop’s battery.
Ups
An uninterruptible power supply.
Monitor
A monitor.
Mouse
A wireless mouse.
Keyboard
A wireless keyboard.
Phone
A phone.
Tablet
A tablet.
GamingInput
A game controller.
Headset
A headset.
Headphones
Headphones.
Speakers
Speakers.
Trait Implementations§
Source§impl Clone for DeviceKind
impl Clone for DeviceKind
impl Copy for DeviceKind
Source§impl Debug for DeviceKind
impl Debug for DeviceKind
Source§impl Default for DeviceKind
impl Default for DeviceKind
impl Eq for DeviceKind
Source§impl PartialEq for DeviceKind
impl PartialEq for DeviceKind
impl StructuralPartialEq for DeviceKind
Auto Trait Implementations§
impl Forget for DeviceKind
impl Freeze for DeviceKind
impl Move for DeviceKind
impl RefUnwindSafe for DeviceKind
impl Send for DeviceKind
impl Sync for DeviceKind
impl Unpin for DeviceKind
impl UnsafeUnpin for DeviceKind
impl UnwindSafe for DeviceKind
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
Source§type NoneType = T
type NoneType = T
The type of the none-equivalent value that
NoneValue::null_value produces.Source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.