pub enum DataBuffer<'a> {
Read(&'a mut [u8]),
Write(&'a [u8]),
Dma(PreparedDma),
}Expand description
Caller-owned data buffer tied to an in-flight transaction lifetime.
Variants§
Implementations§
Source§impl DataBuffer<'_>
impl DataBuffer<'_>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn matches_direction(&self, direction: DataDirection) -> bool
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DataBuffer<'a>
impl<'a> !UnwindSafe for DataBuffer<'a>
impl<'a> Freeze for DataBuffer<'a>
impl<'a> Send for DataBuffer<'a>
impl<'a> Sync for DataBuffer<'a>
impl<'a> Unpin for DataBuffer<'a>
impl<'a> UnsafeUnpin for DataBuffer<'a>
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