#[non_exhaustive]#[repr(u16)]pub enum ProfileKind {
Show 35 variants
NonRemovable = 1,
Removable = 2,
MoErasable = 3,
OpticalWriteOnce = 4,
AsMo = 5,
CdRom = 8,
CdR = 9,
CdRw = 10,
DvdRom = 16,
DvdRSeqRec = 17,
DvdRam = 18,
DvdRwRo = 19,
DvdRwSeqRec = 20,
DvdRDlSeqRec = 21,
DvdRDlJmpRec = 22,
DvdRwDl = 23,
DvdDownDiscRec = 24,
DvdPlusRw = 26,
DvdPlusR = 27,
DdcdRom = 32,
DdcdR = 33,
DdcdRw = 34,
DvdPlusRwDl = 42,
DvdPlusRDl = 43,
BdRom = 64,
BdRSeqRec = 65,
BdRRandRec = 66,
BdRw = 67,
HdDvdRom = 80,
HdDvdR = 81,
HdDvdRam = 82,
HdDvdRw = 83,
HdDvdRDl = 88,
HdDvdRwDl = 89,
NonConform = 65_535,
}Available on crate feature
mmc only.Expand description
Represents the complete set of MMC feature profiles for optical disc drives. Each variant corresponds to a specific media type and recording capability.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NonRemovable = 1
Non-removable disk
Removable = 2
Removable disk
MoErasable = 3
Magneto-Optical Erasable disk
OpticalWriteOnce = 4
Optical Write-Once
AsMo = 5
Advance Storage - Magneto-Optical
CdRom = 8
CD-ROM
CdR = 9
CD-R
CdRw = 10
CD-RW
DvdRom = 16
DVD-ROM
DvdRSeqRec = 17
DVD-R Sequential Recording
DvdRam = 18
DVD-RAM
DvdRwRo = 19
DVD-RW Restricted Overwrite
DvdRwSeqRec = 20
DVD-RW Sequential Recording
DvdRDlSeqRec = 21
DVD-R Dual Layer Sequential recording
DvdRDlJmpRec = 22
DVD-R Dual Layer Jump Recording
DvdRwDl = 23
DVD-RW Dual Layer
DvdDownDiscRec = 24
DVD-Download Disc Recording
DvdPlusRw = 26
DVD+RW
DvdPlusR = 27
DVD+R
DdcdRom = 32
DDCD-ROM
DdcdR = 33
DDCD-R
DdcdRw = 34
DDCD-RW
DvdPlusRwDl = 42
DVD+RW Dual Layer
DvdPlusRDl = 43
DVD+R Double Layer
BdRom = 64
BD-ROM
BdRSeqRec = 65
BD-R Sequential Recording Mode
BdRRandRec = 66
BD-R Random Recording Mode
BdRw = 67
BD-RE
HdDvdRom = 80
HD DVD-ROM
HdDvdR = 81
HD DVD-R
HdDvdRam = 82
HD DVD-RAM
HdDvdRw = 83
HD DVD-RW
HdDvdRDl = 88
HD DVD-R Dual Layer
HdDvdRwDl = 89
HD DVD-RW Dual Layer
NonConform = 65_535
The Drive does not conform to any Profile
Trait Implementations§
Source§impl Clone for ProfileKind
impl Clone for ProfileKind
Source§fn clone(&self) -> ProfileKind
fn clone(&self) -> ProfileKind
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 ProfileKind
Source§impl Debug for ProfileKind
impl Debug for ProfileKind
Source§impl Default for ProfileKind
impl Default for ProfileKind
Source§fn default() -> ProfileKind
fn default() -> ProfileKind
Returns the “default value” for a type. Read more
Source§impl Display for ProfileKind
impl Display for ProfileKind
impl Eq for ProfileKind
Source§impl Hash for ProfileKind
impl Hash for ProfileKind
Source§impl Ord for ProfileKind
impl Ord for ProfileKind
Source§fn cmp(&self, other: &ProfileKind) -> Ordering
fn cmp(&self, other: &ProfileKind) -> 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 ProfileKind
impl PartialEq for ProfileKind
Source§impl PartialOrd for ProfileKind
impl PartialOrd for ProfileKind
impl StructuralPartialEq for ProfileKind
Source§impl TryFrom<u16> for ProfileKind
impl TryFrom<u16> for ProfileKind
Source§type Error = TryFromPrimitiveError<ProfileKind>
type Error = TryFromPrimitiveError<ProfileKind>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ProfileKind
impl TryFromPrimitive for ProfileKind
const NAME: &'static str = "ProfileKind"
type Primitive = u16
type Error = TryFromPrimitiveError<ProfileKind>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ProfileKind
impl RefUnwindSafe for ProfileKind
impl Send for ProfileKind
impl Sync for ProfileKind
impl Unpin for ProfileKind
impl UnsafeUnpin for ProfileKind
impl UnwindSafe for ProfileKind
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