#[repr(u8)]pub enum PowerState {
Active = 1,
Idle = 2,
Standby = 3,
Sleep = 4,
}Available on crate feature
mmc only.Expand description
The current power state of the drive
Variants§
Trait Implementations§
Source§impl Clone for PowerState
impl Clone for PowerState
Source§fn clone(&self) -> PowerState
fn clone(&self) -> PowerState
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 PowerState
Source§impl Debug for PowerState
impl Debug for PowerState
Source§impl Default for PowerState
impl Default for PowerState
Source§fn default() -> PowerState
fn default() -> PowerState
Returns the “default value” for a type. Read more
impl Eq for PowerState
Source§impl Hash for PowerState
impl Hash for PowerState
Source§impl Ord for PowerState
impl Ord for PowerState
Source§fn cmp(&self, other: &PowerState) -> Ordering
fn cmp(&self, other: &PowerState) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PowerState
impl PartialEq for PowerState
Source§impl PartialOrd for PowerState
impl PartialOrd for PowerState
impl StructuralPartialEq for PowerState
Source§impl TryFrom<u8> for PowerState
impl TryFrom<u8> for PowerState
Source§type Error = TryFromPrimitiveError<PowerState>
type Error = TryFromPrimitiveError<PowerState>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PowerState
impl TryFromPrimitive for PowerState
const NAME: &'static str = "PowerState"
type Primitive = u8
type Error = TryFromPrimitiveError<PowerState>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for PowerState
impl RefUnwindSafe for PowerState
impl Send for PowerState
impl Sync for PowerState
impl Unpin for PowerState
impl UnsafeUnpin for PowerState
impl UnwindSafe for PowerState
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