pub struct OperationalStatus {
pub event: Option<OperationalEvent>,
pub persistent_prevent: bool,
}Available on crate feature
mmc only.Expand description
Status of operational changes to the device
Fields§
§event: Option<OperationalEvent>Most recent operational change event on the device
persistent_prevent: boolPersistent prevent state is active.
Upon entering the Persistent Prevent state, the Drive shall disable any eject mechanisms, and all media after initial media spin up shall remain locked in the Drive until the Host issues an eject request, or the Persistent Prevent status is reset and the hardware eject mechanism again becomes available.
Trait Implementations§
Source§impl Clone for OperationalStatus
impl Clone for OperationalStatus
Source§fn clone(&self) -> OperationalStatus
fn clone(&self) -> OperationalStatus
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 OperationalStatus
Source§impl Debug for OperationalStatus
impl Debug for OperationalStatus
Source§impl Default for OperationalStatus
impl Default for OperationalStatus
Source§fn default() -> OperationalStatus
fn default() -> OperationalStatus
Returns the “default value” for a type. Read more
impl Eq for OperationalStatus
Source§impl Hash for OperationalStatus
impl Hash for OperationalStatus
Source§impl Ord for OperationalStatus
impl Ord for OperationalStatus
Source§fn cmp(&self, other: &OperationalStatus) -> Ordering
fn cmp(&self, other: &OperationalStatus) -> 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 OperationalStatus
impl PartialEq for OperationalStatus
Source§impl PartialOrd for OperationalStatus
impl PartialOrd for OperationalStatus
impl StructuralPartialEq for OperationalStatus
Auto Trait Implementations§
impl Freeze for OperationalStatus
impl RefUnwindSafe for OperationalStatus
impl Send for OperationalStatus
impl Sync for OperationalStatus
impl Unpin for OperationalStatus
impl UnsafeUnpin for OperationalStatus
impl UnwindSafe for OperationalStatus
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