pub struct CommandQueueTDLDirectCmdEntry { /* private fields */ }Expand description
A DCMD entry in the CQHCI Task Descriptor List (JESD84-B51A, B.2.2).
Note that this assumes 16-byte descriptors.
Should only be written into the DCMD slot in the TDL; regular transfers must be of type
CommandQueueTDLEntry.
Implementations§
Source§impl CommandQueueTDLDirectCmdEntry
impl CommandQueueTDLDirectCmdEntry
pub fn new(command: MmcCommand, command_arg: u32) -> Self
Trait Implementations§
Source§impl Clone for CommandQueueTDLDirectCmdEntry
impl Clone for CommandQueueTDLDirectCmdEntry
Source§fn clone(&self) -> CommandQueueTDLDirectCmdEntry
fn clone(&self) -> CommandQueueTDLDirectCmdEntry
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 FromBytes for CommandQueueTDLDirectCmdEntry
impl FromBytes for CommandQueueTDLDirectCmdEntry
Source§impl FromZeros for CommandQueueTDLDirectCmdEntry
impl FromZeros for CommandQueueTDLDirectCmdEntry
Source§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self from zeroed bytes. Read moreSource§fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
Creates a
Box<Self> from zeroed bytes. Read moreSource§fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
Creates a
Vec<Self> from zeroed bytes. Read moreSource§fn extend_vec_zeroed(
v: &mut Vec<Self>,
additional: usize,
) -> Result<(), AllocError>where
Self: Sized,
fn extend_vec_zeroed(
v: &mut Vec<Self>,
additional: usize,
) -> Result<(), AllocError>where
Self: Sized,
Extends a
Vec<Self> by pushing additional new items onto the end of
the vector. The new items are initialized with zeros.Source§impl IntoBytes for CommandQueueTDLDirectCmdEntrywhere
CommandQueueDirectCmdTaskDescriptor: IntoBytes,
u128: IntoBytes,
(): PaddingFree<Self, { _ }>,
impl IntoBytes for CommandQueueTDLDirectCmdEntrywhere
CommandQueueDirectCmdTaskDescriptor: IntoBytes,
u128: IntoBytes,
(): PaddingFree<Self, { _ }>,
Source§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl PartialEq for CommandQueueTDLDirectCmdEntry
impl PartialEq for CommandQueueTDLDirectCmdEntry
Source§fn eq(&self, other: &CommandQueueTDLDirectCmdEntry) -> bool
fn eq(&self, other: &CommandQueueTDLDirectCmdEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFromBytes for CommandQueueTDLDirectCmdEntry
impl TryFromBytes for CommandQueueTDLDirectCmdEntry
Source§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for CommandQueueTDLDirectCmdEntry
impl Eq for CommandQueueTDLDirectCmdEntry
impl Immutable for CommandQueueTDLDirectCmdEntry
impl StructuralPartialEq for CommandQueueTDLDirectCmdEntry
Auto Trait Implementations§
impl Freeze for CommandQueueTDLDirectCmdEntry
impl RefUnwindSafe for CommandQueueTDLDirectCmdEntry
impl Send for CommandQueueTDLDirectCmdEntry
impl Sync for CommandQueueTDLDirectCmdEntry
impl Unpin for CommandQueueTDLDirectCmdEntry
impl UnsafeUnpin for CommandQueueTDLDirectCmdEntry
impl UnwindSafe for CommandQueueTDLDirectCmdEntry
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