Enum nvml_wrapper::enums::device::PowerSource
source · pub enum PowerSource {
Ac,
Battery,
}
Expand description
Returned by crate::Device::power_source()
.
Variants§
Implementations§
source§impl PowerSource
impl PowerSource
sourcepub fn as_c(&self) -> nvmlPowerSource_t
pub fn as_c(&self) -> nvmlPowerSource_t
Returns the C constant equivalent for the given Rust enum variant.
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 for PowerSource
impl PartialEq 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 ==
.source§impl TryFrom<u32> for PowerSource
impl TryFrom<u32> for PowerSource
impl Eq for PowerSource
impl StructuralPartialEq for PowerSource
Auto Trait Implementations§
impl RefUnwindSafe for PowerSource
impl Send for PowerSource
impl Sync for PowerSource
impl Unpin 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