pub struct PowerStatus {
pub event: Option<PowerEvent>,
pub state: PowerState,
}Available on crate feature
mmc only.Expand description
Changes to power status
Fields§
§event: Option<PowerEvent>Most recent power management event on the device
state: PowerStateCurrent power state of the drive
Trait Implementations§
Source§impl Clone for PowerStatus
impl Clone for PowerStatus
Source§fn clone(&self) -> PowerStatus
fn clone(&self) -> PowerStatus
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 PowerStatus
Source§impl Debug for PowerStatus
impl Debug for PowerStatus
impl Eq for PowerStatus
Source§impl Hash for PowerStatus
impl Hash for PowerStatus
Source§impl Ord for PowerStatus
impl Ord for PowerStatus
Source§fn cmp(&self, other: &PowerStatus) -> Ordering
fn cmp(&self, other: &PowerStatus) -> 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 PowerStatus
impl PartialEq for PowerStatus
Source§impl PartialOrd for PowerStatus
impl PartialOrd for PowerStatus
impl StructuralPartialEq for PowerStatus
Auto Trait Implementations§
impl Freeze for PowerStatus
impl RefUnwindSafe for PowerStatus
impl Send for PowerStatus
impl Sync for PowerStatus
impl Unpin for PowerStatus
impl UnsafeUnpin for PowerStatus
impl UnwindSafe for PowerStatus
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