#[repr(u8)]pub enum PowerEvent {
PwrChgSuccessful = 1,
PwrChgFail = 2,
}Available on crate feature
mmc only.Expand description
The power change event
Variants§
PwrChgSuccessful = 1
The drive successfully changed to the specified power state
PwrChgFail = 2
The drive failed to enter the last requested state and is still
operating at the power state specified in the status field
Trait Implementations§
Source§impl Clone for PowerEvent
impl Clone for PowerEvent
Source§fn clone(&self) -> PowerEvent
fn clone(&self) -> PowerEvent
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 PowerEvent
Source§impl Debug for PowerEvent
impl Debug for PowerEvent
Source§impl Default for PowerEvent
impl Default for PowerEvent
Source§fn default() -> PowerEvent
fn default() -> PowerEvent
Returns the “default value” for a type. Read more
impl Eq for PowerEvent
Source§impl Hash for PowerEvent
impl Hash for PowerEvent
Source§impl Ord for PowerEvent
impl Ord for PowerEvent
Source§fn cmp(&self, other: &PowerEvent) -> Ordering
fn cmp(&self, other: &PowerEvent) -> 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 PowerEvent
impl PartialEq for PowerEvent
Source§impl PartialOrd for PowerEvent
impl PartialOrd for PowerEvent
impl StructuralPartialEq for PowerEvent
Source§impl TryFrom<u8> for PowerEvent
impl TryFrom<u8> for PowerEvent
Source§type Error = TryFromPrimitiveError<PowerEvent>
type Error = TryFromPrimitiveError<PowerEvent>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PowerEvent
impl TryFromPrimitive for PowerEvent
const NAME: &'static str = "PowerEvent"
type Primitive = u8
type Error = TryFromPrimitiveError<PowerEvent>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for PowerEvent
impl RefUnwindSafe for PowerEvent
impl Send for PowerEvent
impl Sync for PowerEvent
impl Unpin for PowerEvent
impl UnsafeUnpin for PowerEvent
impl UnwindSafe for PowerEvent
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