Struct AesTransfer

Source
pub struct AesTransfer<'d, RX: DmaRxBuffer, TX: DmaTxBuffer> { /* private fields */ }
Available on crate feature unstable only.
Expand description

Represents an ongoing (or potentially stopped) transfer with the Aes.

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Implementations§

Source§

impl<'d, RX: DmaRxBuffer, TX: DmaTxBuffer> AesTransfer<'d, RX, TX>

Source

pub fn is_done(&self) -> bool

Returns true when Self::wait will not block.

Source

pub fn wait(self) -> (AesDma<'d>, RX, TX)

Waits for the transfer to finish and returns the peripheral and buffers.

Source

pub fn rx_view(&self) -> &RX::View

Provides shared access to the DMA rx buffer view.

Source

pub fn rx_view_mut(&mut self) -> &mut RX::View

Provides exclusive access to the DMA rx buffer view.

Source

pub fn tx_view(&self) -> &TX::View

Provides shared access to the DMA tx buffer view.

Source

pub fn tx_view_mut(&mut self) -> &mut TX::View

Provides exclusive access to the DMA tx buffer view.

Trait Implementations§

Source§

impl<RX: DmaRxBuffer, TX: DmaTxBuffer> Drop for AesTransfer<'_, RX, TX>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl<'d, RX, TX> Freeze for AesTransfer<'d, RX, TX>
where <RX as DmaRxBuffer>::View: Freeze, <TX as DmaTxBuffer>::View: Freeze,

§

impl<'d, RX, TX> RefUnwindSafe for AesTransfer<'d, RX, TX>
where <RX as DmaRxBuffer>::View: RefUnwindSafe, <TX as DmaTxBuffer>::View: RefUnwindSafe,

§

impl<'d, RX, TX> Send for AesTransfer<'d, RX, TX>
where <RX as DmaRxBuffer>::View: Send, <TX as DmaTxBuffer>::View: Send,

§

impl<'d, RX, TX> Sync for AesTransfer<'d, RX, TX>
where <RX as DmaRxBuffer>::View: Sync, <TX as DmaTxBuffer>::View: Sync,

§

impl<'d, RX, TX> Unpin for AesTransfer<'d, RX, TX>
where <RX as DmaRxBuffer>::View: Unpin, <TX as DmaTxBuffer>::View: Unpin,

§

impl<'d, RX, TX> !UnwindSafe for AesTransfer<'d, RX, TX>

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<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.