pub struct CommandQueueTransferDescriptor(pub u128);Expand description
A transfer descriptor in the CQHCI Task Descriptor List (JESD84-B51A, B.2.2).
Tuple Fields§
§0: u128Implementations§
Source§impl CommandQueueTransferDescriptor
impl CommandQueueTransferDescriptor
Sourcepub fn transfer(address: u64, length: TransferBytes, end: bool) -> Self
pub fn transfer(address: u64, length: TransferBytes, end: bool) -> Self
Creates a new CommandQueueTransferDescriptor pointing to a data buffer.
Sourcepub fn link(address: u64) -> Self
pub fn link(address: u64) -> Self
Creates a new CommandQueueTransferDescriptor pointing to a list of transfer descriptors.
Trait Implementations§
Source§impl<T> BitRange<T> for CommandQueueTransferDescriptor
impl<T> BitRange<T> for CommandQueueTransferDescriptor
Source§impl<T> BitRangeMut<T> for CommandQueueTransferDescriptorwhere
u128: BitRangeMut<T>,
impl<T> BitRangeMut<T> for CommandQueueTransferDescriptorwhere
u128: BitRangeMut<T>,
Source§fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
Set a range of bits.
Source§impl Clone for CommandQueueTransferDescriptor
impl Clone for CommandQueueTransferDescriptor
Source§fn clone(&self) -> CommandQueueTransferDescriptor
fn clone(&self) -> CommandQueueTransferDescriptor
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 CommandQueueTransferDescriptor
impl FromBytes for CommandQueueTransferDescriptor
Source§impl FromZeros for CommandQueueTransferDescriptor
impl FromZeros for CommandQueueTransferDescriptor
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 CommandQueueTransferDescriptor
impl IntoBytes for CommandQueueTransferDescriptor
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 CommandQueueTransferDescriptor
impl PartialEq for CommandQueueTransferDescriptor
Source§fn eq(&self, other: &CommandQueueTransferDescriptor) -> bool
fn eq(&self, other: &CommandQueueTransferDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFromBytes for CommandQueueTransferDescriptorwhere
u128: TryFromBytes,
impl TryFromBytes for CommandQueueTransferDescriptorwhere
u128: TryFromBytes,
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 CommandQueueTransferDescriptor
impl Eq for CommandQueueTransferDescriptor
impl Immutable for CommandQueueTransferDescriptor
impl StructuralPartialEq for CommandQueueTransferDescriptor
Auto Trait Implementations§
impl Freeze for CommandQueueTransferDescriptor
impl RefUnwindSafe for CommandQueueTransferDescriptor
impl Send for CommandQueueTransferDescriptor
impl Sync for CommandQueueTransferDescriptor
impl Unpin for CommandQueueTransferDescriptor
impl UnsafeUnpin for CommandQueueTransferDescriptor
impl UnwindSafe for CommandQueueTransferDescriptor
Blanket Implementations§
Source§impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
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