#[repr(u8)]pub enum SpeedClassControl {
StartRecording = 0,
UpdateDIR = 1,
UpdateCI = 4,
}
Expand description
Represents the Speed Class Control
field for legacy and UHS speed mode.
Variants§
StartRecording = 0
Indicates that the host starts stream recording.
UpdateDIR = 1
Indicates the following write is a directory entry write.
UpdateCI = 4
Indicates the following write command is a write to a CI cluster.
Implementations§
Source§impl SpeedClassControl
impl SpeedClassControl
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new SpeedClassControl.
Sourcepub const fn from_raw_unchecked(val: u8) -> Self
pub const fn from_raw_unchecked(val: u8) -> Self
Sourcepub const fn from_raw(val: u8) -> Result<Self, Error>
pub const fn from_raw(val: u8) -> Result<Self, Error>
Attempts to convert a u8
into a SpeedClassControl.
Sourcepub const fn into_raw(self) -> u8
pub const fn into_raw(self) -> u8
Converts a SpeedClassControl into a u8
.
Trait Implementations§
Source§impl Clone for SpeedClassControl
impl Clone for SpeedClassControl
Source§fn clone(&self) -> SpeedClassControl
fn clone(&self) -> SpeedClassControl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SpeedClassControl
impl Debug for SpeedClassControl
Source§impl Default for SpeedClassControl
impl Default for SpeedClassControl
Source§impl From<SpeedClassControl> for u8
impl From<SpeedClassControl> for u8
Source§fn from(val: SpeedClassControl) -> Self
fn from(val: SpeedClassControl) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SpeedClassControl
impl PartialEq for SpeedClassControl
Source§impl TryFrom<u8> for SpeedClassControl
impl TryFrom<u8> for SpeedClassControl
impl Copy for SpeedClassControl
impl Eq for SpeedClassControl
impl StructuralPartialEq for SpeedClassControl
Auto Trait Implementations§
impl Freeze for SpeedClassControl
impl RefUnwindSafe for SpeedClassControl
impl Send for SpeedClassControl
impl Sync for SpeedClassControl
impl Unpin for SpeedClassControl
impl UnwindSafe for SpeedClassControl
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