Enum windows_service::service::PowerSource
source · #[repr(i32)]
pub enum PowerSource {
Ac,
Dc,
Hot,
}Expand description
Enum indicates the current power source as the Data member of GUID_ACDC_POWER_SOURCE notification
Variants§
Implementations§
source§impl PowerSource
impl PowerSource
pub fn to_raw(&self) -> i32
pub fn from_raw(raw: i32) -> Result<PowerSource, ParseRawError>
Trait Implementations§
source§impl Clone for PowerSource
impl Clone for PowerSource
source§fn clone(&self) -> PowerSource
fn clone(&self) -> PowerSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PowerSource
impl Debug for PowerSource
source§impl Hash for PowerSource
impl Hash for PowerSource
source§impl PartialEq<PowerSource> for PowerSource
impl PartialEq<PowerSource> for PowerSource
source§fn eq(&self, other: &PowerSource) -> bool
fn eq(&self, other: &PowerSource) -> bool
This method tests for
self and other values to be equal, and is used
by ==.