#[repr(u8)]pub enum VideoSpeedClass {
LegacyUHS = 0,
Video = 1,
}
Expand description
Represents the Speed Class Control
field for legacy and UHS speed mode.
Variants§
LegacyUHS = 0
Indicates that the card is in legacy or UHS speed mode.
Video = 1
Indicates that the card is in Video speed mode.
Implementations§
Source§impl VideoSpeedClass
impl VideoSpeedClass
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new VideoSpeedClass.
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 VideoSpeedClass.
Sourcepub const fn into_raw(self) -> u8
pub const fn into_raw(self) -> u8
Converts a VideoSpeedClass into a u8
.
Source§impl VideoSpeedClass
impl VideoSpeedClass
Sourcepub const fn from_bool(val: bool) -> Self
pub const fn from_bool(val: bool) -> Self
Converts a bool
into a VideoSpeedClass.
Sourcepub const fn into_bool(&self) -> bool
pub const fn into_bool(&self) -> bool
Converts the VideoSpeedClass into a bool
.
Trait Implementations§
Source§impl Clone for VideoSpeedClass
impl Clone for VideoSpeedClass
Source§fn clone(&self) -> VideoSpeedClass
fn clone(&self) -> VideoSpeedClass
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 VideoSpeedClass
impl Debug for VideoSpeedClass
Source§impl Default for VideoSpeedClass
impl Default for VideoSpeedClass
Source§impl From<VideoSpeedClass> for bool
impl From<VideoSpeedClass> for bool
Source§fn from(val: VideoSpeedClass) -> Self
fn from(val: VideoSpeedClass) -> Self
Converts to this type from the input type.
Source§impl From<VideoSpeedClass> for u8
impl From<VideoSpeedClass> for u8
Source§fn from(val: VideoSpeedClass) -> Self
fn from(val: VideoSpeedClass) -> Self
Converts to this type from the input type.
Source§impl From<bool> for VideoSpeedClass
impl From<bool> for VideoSpeedClass
Source§impl PartialEq for VideoSpeedClass
impl PartialEq for VideoSpeedClass
Source§impl TryFrom<u8> for VideoSpeedClass
impl TryFrom<u8> for VideoSpeedClass
impl Copy for VideoSpeedClass
impl Eq for VideoSpeedClass
impl StructuralPartialEq for VideoSpeedClass
Auto Trait Implementations§
impl Freeze for VideoSpeedClass
impl RefUnwindSafe for VideoSpeedClass
impl Send for VideoSpeedClass
impl Sync for VideoSpeedClass
impl Unpin for VideoSpeedClass
impl UnwindSafe for VideoSpeedClass
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