Struct Mem2MemRxTransfer

Source
pub struct Mem2MemRxTransfer<'d, M: DriverMode, BUF: DmaRxBuffer> { /* private fields */ }
Available on crate feature unstable only.
Expand description

Represents an ongoing (or potentially finished) DMA Memory-to-Memory RX transfer.

Implementations§

Source§

impl<'d, M: DriverMode, BUF: DmaRxBuffer> Mem2MemRxTransfer<'d, M, BUF>

Source

pub fn is_done(&self) -> bool

Returns true when Self::wait will not block.

Source

pub fn wait(self) -> (Result<(), DmaError>, Mem2MemRx<'d, M>, BUF)

Waits for the transfer to stop and returns the peripheral and buffer.

Source

pub fn stop(self) -> (Mem2MemRx<'d, M>, BUF)

Stops this transfer on the spot and returns the peripheral and buffer.

Trait Implementations§

Source§

impl<M: DriverMode, BUF: DmaRxBuffer> Deref for Mem2MemRxTransfer<'_, M, BUF>

Source§

type Target = <BUF as DmaRxBuffer>::View

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<M: DriverMode, BUF: DmaRxBuffer> DerefMut for Mem2MemRxTransfer<'_, M, BUF>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<M: DriverMode, BUF: DmaRxBuffer> Drop for Mem2MemRxTransfer<'_, M, BUF>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl<'d, M, BUF> Freeze for Mem2MemRxTransfer<'d, M, BUF>
where <BUF as DmaRxBuffer>::View: Freeze,

§

impl<'d, M, BUF> RefUnwindSafe for Mem2MemRxTransfer<'d, M, BUF>
where <BUF as DmaRxBuffer>::View: RefUnwindSafe, M: RefUnwindSafe,

§

impl<'d, M, BUF> Send for Mem2MemRxTransfer<'d, M, BUF>
where <BUF as DmaRxBuffer>::View: Send, M: Send,

§

impl<'d, M, BUF> Sync for Mem2MemRxTransfer<'d, M, BUF>
where <BUF as DmaRxBuffer>::View: Sync, M: Sync,

§

impl<'d, M, BUF> Unpin for Mem2MemRxTransfer<'d, M, BUF>
where <BUF as DmaRxBuffer>::View: Unpin, M: Unpin,

§

impl<'d, M, BUF> !UnwindSafe for Mem2MemRxTransfer<'d, M, BUF>

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> RngCore for T
where T: DerefMut, <T as Deref>::Target: RngCore,

Source§

fn next_u32(&mut self) -> u32

Return the next random u32. Read more
Source§

fn next_u64(&mut self) -> u64

Return the next random u64. Read more
Source§

fn fill_bytes(&mut self, dst: &mut [u8])

Fill dest with random data. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<R> TryRngCore for R
where R: RngCore + ?Sized,

Source§

type Error = Infallible

The type returned in the event of a RNG error.
Source§

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>

Return the next random u64.
Source§

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,

Wrap RNG with the UnwrapErr wrapper.
Source§

fn unwrap_mut(&mut self) -> UnwrapMut<'_, Self>

Wrap RNG with the UnwrapMut wrapper.
Source§

impl<T> CryptoRng for T
where T: DerefMut, <T as Deref>::Target: CryptoRng,

Source§

impl<R> TryCryptoRng for R
where R: CryptoRng + ?Sized,