#[repr(u32)]pub enum PowerSource {
Offline = 0,
Online = 1,
}Expand description
Result of a _PSR query.
Indicates whether the power source is currently supplying power to the system
Variants§
Offline = 0
Power source is offline (not supplying power).
Online = 1
Power source is online (supplying power).
Trait Implementations§
Source§impl Clone for PowerSource
impl Clone for PowerSource
Source§fn clone(&self) -> PowerSource
fn clone(&self) -> PowerSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PowerSource
Source§impl Default for PowerSource
impl Default for PowerSource
Source§fn default() -> PowerSource
fn default() -> PowerSource
Returns the “default value” for a type. Read more
impl Eq for PowerSource
Source§impl From<PowerSource> for u32
impl From<PowerSource> for u32
Source§fn from(value: PowerSource) -> Self
fn from(value: PowerSource) -> Self
Converts to this type from the input type.
impl Immutable for PowerSource
Source§impl IntoBytes for PowerSourcewhere
(): PaddingFree<Self, { _ }>,
impl IntoBytes for PowerSourcewhere
(): PaddingFree<Self, { _ }>,
Source§impl PartialEq for PowerSource
impl PartialEq for PowerSource
Source§fn eq(&self, other: &PowerSource) -> bool
fn eq(&self, other: &PowerSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PowerSource
Auto Trait Implementations§
impl Freeze for PowerSource
impl RefUnwindSafe for PowerSource
impl Send for PowerSource
impl Sync for PowerSource
impl Unpin for PowerSource
impl UnsafeUnpin for PowerSource
impl UnwindSafe for PowerSource
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