#[repr(u8)]pub enum VideoSpeedClassControl {
StartRecording = 0,
UpdateDIR = 1,
UpdateCI = 4,
SuspendRecording = 5,
ResumeRecording = 6,
SetFreeAU = 7,
ReleaseDIR = 8,
}
Expand description
Represents the Speed Class Control
field for Video 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.
SuspendRecording = 5
Indicates to suspend recording.
ResumeRecording = 6
Indicates to resume recording.
SetFreeAU = 7
Indicates that the host assigns one or more sequential AUs for recording.
ReleaseDIR = 8
Indicates the DIR address stored in the specified slot shall be cleared.
Implementations§
Source§impl VideoSpeedClassControl
impl VideoSpeedClassControl
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new VideoSpeedClassControl.
Sourcepub const fn from_raw_unchecked(val: u8) -> Self
pub const fn from_raw_unchecked(val: u8) -> Self
Converts a u8
into a VideoSpeedClassControl.
§Panics
Panics if the passed value is an invalid variant
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 VideoSpeedClassControl.
Sourcepub const fn into_raw(self) -> u8
pub const fn into_raw(self) -> u8
Converts a VideoSpeedClassControl into a u8
.
Trait Implementations§
Source§impl Clone for VideoSpeedClassControl
impl Clone for VideoSpeedClassControl
Source§fn clone(&self) -> VideoSpeedClassControl
fn clone(&self) -> VideoSpeedClassControl
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 VideoSpeedClassControl
impl Debug for VideoSpeedClassControl
Source§impl Default for VideoSpeedClassControl
impl Default for VideoSpeedClassControl
Source§impl From<VideoSpeedClassControl> for u8
impl From<VideoSpeedClassControl> for u8
Source§fn from(val: VideoSpeedClassControl) -> Self
fn from(val: VideoSpeedClassControl) -> Self
Converts to this type from the input type.
Source§impl PartialEq for VideoSpeedClassControl
impl PartialEq for VideoSpeedClassControl
Source§impl TryFrom<u8> for VideoSpeedClassControl
impl TryFrom<u8> for VideoSpeedClassControl
impl Copy for VideoSpeedClassControl
impl Eq for VideoSpeedClassControl
impl StructuralPartialEq for VideoSpeedClassControl
Auto Trait Implementations§
impl Freeze for VideoSpeedClassControl
impl RefUnwindSafe for VideoSpeedClassControl
impl Send for VideoSpeedClassControl
impl Sync for VideoSpeedClassControl
impl Unpin for VideoSpeedClassControl
impl UnwindSafe for VideoSpeedClassControl
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