#[repr(u16)]pub enum ExternalRequest {
Overrun = 1,
Play = 257,
RewindOrBack = 258,
FastForward = 259,
Pause = 260,
Stop = 262,
Ascii = 263,
VendorUnique = 61_440,
}Available on crate feature
mmc only.Expand description
Operation requested or performed via an external request to the device
Variants§
Overrun = 1
The request queue has overflowed. External Request events may be lost.
Play = 257
The play button was pressed or was requested by another host.
RewindOrBack = 258
The rewind/back button was pressed or was requested by another host.
FastForward = 259
The fast forward button was pressed or was requested by another host.
Pause = 260
The pause button was pressed or was requested by another host.
Stop = 262
The stop button was pressed or was requested by another host.
Ascii = 263
A front panel button was pressed or was requested by another host.
VendorUnique = 61_440
A vendor unique request
Trait Implementations§
Source§impl Clone for ExternalRequest
impl Clone for ExternalRequest
Source§fn clone(&self) -> ExternalRequest
fn clone(&self) -> ExternalRequest
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 ExternalRequest
Source§impl Debug for ExternalRequest
impl Debug for ExternalRequest
Source§impl Default for ExternalRequest
impl Default for ExternalRequest
Source§fn default() -> ExternalRequest
fn default() -> ExternalRequest
Returns the “default value” for a type. Read more
impl Eq for ExternalRequest
Source§impl Hash for ExternalRequest
impl Hash for ExternalRequest
Source§impl Ord for ExternalRequest
impl Ord for ExternalRequest
Source§fn cmp(&self, other: &ExternalRequest) -> Ordering
fn cmp(&self, other: &ExternalRequest) -> 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 ExternalRequest
impl PartialEq for ExternalRequest
Source§impl PartialOrd for ExternalRequest
impl PartialOrd for ExternalRequest
impl StructuralPartialEq for ExternalRequest
Source§impl TryFrom<u16> for ExternalRequest
impl TryFrom<u16> for ExternalRequest
Source§type Error = TryFromPrimitiveError<ExternalRequest>
type Error = TryFromPrimitiveError<ExternalRequest>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ExternalRequest
impl TryFromPrimitive for ExternalRequest
const NAME: &'static str = "ExternalRequest"
type Primitive = u16
type Error = TryFromPrimitiveError<ExternalRequest>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ExternalRequest
impl RefUnwindSafe for ExternalRequest
impl Send for ExternalRequest
impl Sync for ExternalRequest
impl Unpin for ExternalRequest
impl UnsafeUnpin for ExternalRequest
impl UnwindSafe for ExternalRequest
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