#[repr(u8)]pub enum ExternalRequestEvent {
DriveKeyDown = 1,
DriveKeyUp = 2,
ExternalRequestNotification = 3,
}Available on crate feature
mmc only.Expand description
External request events to the device
Variants§
DriveKeyDown = 1
A front, back, or remote button has been depressed
DriveKeyUp = 2
A front, back, or remote button has been released
ExternalRequestNotification = 3
The drive has received a command from another host that requires an action that may interfere with the persistent prevent owner’s operation
Trait Implementations§
Source§impl Clone for ExternalRequestEvent
impl Clone for ExternalRequestEvent
Source§fn clone(&self) -> ExternalRequestEvent
fn clone(&self) -> ExternalRequestEvent
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 ExternalRequestEvent
Source§impl Debug for ExternalRequestEvent
impl Debug for ExternalRequestEvent
Source§impl Default for ExternalRequestEvent
impl Default for ExternalRequestEvent
Source§fn default() -> ExternalRequestEvent
fn default() -> ExternalRequestEvent
Returns the “default value” for a type. Read more
impl Eq for ExternalRequestEvent
Source§impl Hash for ExternalRequestEvent
impl Hash for ExternalRequestEvent
Source§impl Ord for ExternalRequestEvent
impl Ord for ExternalRequestEvent
Source§fn cmp(&self, other: &ExternalRequestEvent) -> Ordering
fn cmp(&self, other: &ExternalRequestEvent) -> 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 ExternalRequestEvent
impl PartialEq for ExternalRequestEvent
Source§impl PartialOrd for ExternalRequestEvent
impl PartialOrd for ExternalRequestEvent
impl StructuralPartialEq for ExternalRequestEvent
Source§impl TryFrom<u8> for ExternalRequestEvent
impl TryFrom<u8> for ExternalRequestEvent
Source§type Error = TryFromPrimitiveError<ExternalRequestEvent>
type Error = TryFromPrimitiveError<ExternalRequestEvent>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ExternalRequestEvent
impl TryFromPrimitive for ExternalRequestEvent
const NAME: &'static str = "ExternalRequestEvent"
type Primitive = u8
type Error = TryFromPrimitiveError<ExternalRequestEvent>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ExternalRequestEvent
impl RefUnwindSafe for ExternalRequestEvent
impl Send for ExternalRequestEvent
impl Sync for ExternalRequestEvent
impl Unpin for ExternalRequestEvent
impl UnsafeUnpin for ExternalRequestEvent
impl UnwindSafe for ExternalRequestEvent
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