pub struct UhciDmaTxTransfer<'d, Dm, Buf>where
Dm: DriverMode,
Buf: DmaTxBuffer,{ /* private fields */ }Expand description
A structure representing a DMA transfer for UHCI/UART.
This structure holds references to the UHCI instance, DMA buffers, and transfer status.
Implementations§
Source§impl<'d, Buf: DmaTxBuffer, Dm: DriverMode> UhciDmaTxTransfer<'d, Dm, Buf>
impl<'d, Buf: DmaTxBuffer, Dm: DriverMode> UhciDmaTxTransfer<'d, Dm, Buf>
Sourcepub fn is_done(&self) -> bool
pub fn is_done(&self) -> bool
Returns true when Self::wait will not block.
Source§impl<'d, Buf: DmaTxBuffer> UhciDmaTxTransfer<'d, Async, Buf>
impl<'d, Buf: DmaTxBuffer> UhciDmaTxTransfer<'d, Async, Buf>
Sourcepub async fn wait_for_done(&mut self)
pub async fn wait_for_done(&mut self)
Waits for the DMA transfer to complete, but async. After that, you still need to wait()
Trait Implementations§
Source§impl<Dm: DriverMode, Buf: DmaTxBuffer> Deref for UhciDmaTxTransfer<'_, Dm, Buf>
impl<Dm: DriverMode, Buf: DmaTxBuffer> Deref for UhciDmaTxTransfer<'_, Dm, Buf>
Source§impl<Dm: DriverMode, Buf: DmaTxBuffer> DerefMut for UhciDmaTxTransfer<'_, Dm, Buf>
impl<Dm: DriverMode, Buf: DmaTxBuffer> DerefMut for UhciDmaTxTransfer<'_, Dm, Buf>
Source§impl<Dm, Buf> Drop for UhciDmaTxTransfer<'_, Dm, Buf>where
Dm: DriverMode,
Buf: DmaTxBuffer,
impl<Dm, Buf> Drop for UhciDmaTxTransfer<'_, Dm, Buf>where
Dm: DriverMode,
Buf: DmaTxBuffer,
Auto Trait Implementations§
impl<'d, Dm, Buf> Freeze for UhciDmaTxTransfer<'d, Dm, Buf>where
<Buf as DmaTxBuffer>::View: Freeze,
impl<'d, Dm, Buf> RefUnwindSafe for UhciDmaTxTransfer<'d, Dm, Buf>where
<Buf as DmaTxBuffer>::View: RefUnwindSafe,
Dm: RefUnwindSafe,
impl<'d, Dm, Buf> Send for UhciDmaTxTransfer<'d, Dm, Buf>where
<Buf as DmaTxBuffer>::View: Send,
Dm: Send,
impl<'d, Dm, Buf> Sync for UhciDmaTxTransfer<'d, Dm, Buf>where
<Buf as DmaTxBuffer>::View: Sync,
Dm: Sync,
impl<'d, Dm, Buf> Unpin for UhciDmaTxTransfer<'d, Dm, Buf>where
<Buf as DmaTxBuffer>::View: Unpin,
Dm: Unpin,
impl<'d, Dm, Buf> !UnwindSafe for UhciDmaTxTransfer<'d, Dm, Buf>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<P, T> Receiver for Pwhere
P: Deref<Target = T> + ?Sized,
T: ?Sized,
impl<P, T> Receiver for Pwhere
P: Deref<Target = T> + ?Sized,
T: ?Sized,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
§impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
Source§impl<R> TryRngCore for Rwhere
R: RngCore + ?Sized,
impl<R> TryRngCore for Rwhere
R: RngCore + ?Sized,
Source§fn try_next_u32(&mut self) -> Result<u32, <R as TryRngCore>::Error>
fn try_next_u32(&mut self) -> Result<u32, <R as TryRngCore>::Error>
Return the next random
u32.Source§fn try_next_u64(&mut self) -> Result<u64, <R as TryRngCore>::Error>
fn try_next_u64(&mut self) -> Result<u64, <R as TryRngCore>::Error>
Return the next random
u64.Source§fn try_fill_bytes(
&mut self,
dst: &mut [u8],
) -> Result<(), <R as TryRngCore>::Error>
fn try_fill_bytes( &mut self, dst: &mut [u8], ) -> Result<(), <R as TryRngCore>::Error>
Fill
dest entirely with random data.Source§fn unwrap_err(self) -> UnwrapErr<Self>where
Self: Sized,
fn unwrap_err(self) -> UnwrapErr<Self>where
Self: Sized,
Wrap RNG with the
UnwrapErr wrapper.Source§fn unwrap_mut(&mut self) -> UnwrapMut<'_, Self>
fn unwrap_mut(&mut self) -> UnwrapMut<'_, Self>
Wrap RNG with the
UnwrapMut wrapper.