#[repr(u8)]pub enum MediaEvent {
EjectRequest = 1,
NewMedia = 2,
MediaRemoval = 3,
MediaChanged = 4,
BackgroundFormatCompleted = 5,
BackgroundFormatRestarted = 6,
}Available on crate feature
mmc only.Expand description
Media event
Variants§
EjectRequest = 1
The drive has received a request from the user to eject the specified slot or media
NewMedia = 2
The specified slot has received new media and is ready to access it
MediaRemoval = 3
The media has been removed from the specified slot and the drive is unable to access the media without user intervention. This applies to media changers only.
MediaChanged = 4
The user has requested that the media in the specified slot be loaded. This applies to media changers only.
BackgroundFormatCompleted = 5
A DVD+RW background format has completed.
BackgroundFormatRestarted = 6
A DVD+RW background format has been automatically restarted by the drive.
Trait Implementations§
Source§impl Clone for MediaEvent
impl Clone for MediaEvent
Source§fn clone(&self) -> MediaEvent
fn clone(&self) -> MediaEvent
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 MediaEvent
Source§impl Debug for MediaEvent
impl Debug for MediaEvent
Source§impl Default for MediaEvent
impl Default for MediaEvent
Source§fn default() -> MediaEvent
fn default() -> MediaEvent
Returns the “default value” for a type. Read more
impl Eq for MediaEvent
Source§impl Hash for MediaEvent
impl Hash for MediaEvent
Source§impl Ord for MediaEvent
impl Ord for MediaEvent
Source§fn cmp(&self, other: &MediaEvent) -> Ordering
fn cmp(&self, other: &MediaEvent) -> 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 MediaEvent
impl PartialEq for MediaEvent
Source§impl PartialOrd for MediaEvent
impl PartialOrd for MediaEvent
impl StructuralPartialEq for MediaEvent
Source§impl TryFrom<u8> for MediaEvent
impl TryFrom<u8> for MediaEvent
Source§type Error = TryFromPrimitiveError<MediaEvent>
type Error = TryFromPrimitiveError<MediaEvent>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for MediaEvent
impl TryFromPrimitive for MediaEvent
const NAME: &'static str = "MediaEvent"
type Primitive = u8
type Error = TryFromPrimitiveError<MediaEvent>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for MediaEvent
impl RefUnwindSafe for MediaEvent
impl Send for MediaEvent
impl Sync for MediaEvent
impl Unpin for MediaEvent
impl UnsafeUnpin for MediaEvent
impl UnwindSafe for MediaEvent
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