pub struct MediaStatus {
pub event: Option<MediaEvent>,
pub state: MediaState,
pub start_slot: u8,
pub end_slot: u8,
}Available on crate feature
mmc only.Expand description
Media related changes
Fields§
§event: Option<MediaEvent>Most recent media event on the device
state: MediaStateCurrent media state of the device
start_slot: u8The first slot of a multiple slot drive the media status notification applies to. Only applies to drives that support multiple slots.
end_slot: u8The last slot of a multiple slot drive the media status notification applies to. Only applies to drives that support
Trait Implementations§
Source§impl Clone for MediaStatus
impl Clone for MediaStatus
Source§fn clone(&self) -> MediaStatus
fn clone(&self) -> MediaStatus
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 MediaStatus
Source§impl Debug for MediaStatus
impl Debug for MediaStatus
impl Eq for MediaStatus
Source§impl Hash for MediaStatus
impl Hash for MediaStatus
Source§impl Ord for MediaStatus
impl Ord for MediaStatus
Source§fn cmp(&self, other: &MediaStatus) -> Ordering
fn cmp(&self, other: &MediaStatus) -> 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 MediaStatus
impl PartialEq for MediaStatus
Source§impl PartialOrd for MediaStatus
impl PartialOrd for MediaStatus
impl StructuralPartialEq for MediaStatus
Auto Trait Implementations§
impl Freeze for MediaStatus
impl RefUnwindSafe for MediaStatus
impl Send for MediaStatus
impl Sync for MediaStatus
impl Unpin for MediaStatus
impl UnsafeUnpin for MediaStatus
impl UnwindSafe for MediaStatus
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