Skip to main content

EthernetDmaStorage

Struct EthernetDmaStorage 

Source
pub struct EthernetDmaStorage<const RX: usize, const TX: usize> { /* private fields */ }
Available on crate feature unstable only.
Expand description

Static backing storage for all DMA descriptor rings and packet buffers.

TX is the number of transmit slots; RX is the number of receive slots. Pass a mutable reference to Ethernet::new.

Implementations§

Source§

impl<const RX: usize, const TX: usize> EthernetDmaStorage<RX, TX>

Source

pub const fn new() -> Self

Creates a zero-initialized storage block, suitable for static placement.

Trait Implementations§

Source§

impl<const RX: usize, const TX: usize> Default for EthernetDmaStorage<RX, TX>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<const RX: usize, const TX: usize> Send for EthernetDmaStorage<RX, TX>

Source§

impl<const RX: usize, const TX: usize> Sync for EthernetDmaStorage<RX, TX>

Auto Trait Implementations§

§

impl<const RX: usize, const TX: usize> !Freeze for EthernetDmaStorage<RX, TX>

§

impl<const RX: usize, const TX: usize> !RefUnwindSafe for EthernetDmaStorage<RX, TX>

§

impl<const RX: usize, const TX: usize> Unpin for EthernetDmaStorage<RX, TX>
where [InternalMemory<RDes>; RX]: Unpin, [InternalMemory<TDes>; TX]: Unpin, [InternalMemory<[u8; 1524]>; RX]: Unpin, [InternalMemory<[u8; 1524]>; TX]: Unpin,

§

impl<const RX: usize, const TX: usize> UnsafeUnpin for EthernetDmaStorage<RX, TX>
where [InternalMemory<RDes>; RX]: UnsafeUnpin, [InternalMemory<TDes>; TX]: UnsafeUnpin, [InternalMemory<[u8; 1524]>; RX]: UnsafeUnpin, [InternalMemory<[u8; 1524]>; TX]: UnsafeUnpin,

§

impl<const RX: usize, const TX: usize> UnwindSafe for EthernetDmaStorage<RX, TX>
where [InternalMemory<RDes>; RX]: UnwindSafe, [InternalMemory<TDes>; TX]: UnwindSafe, [InternalMemory<[u8; 1524]>; RX]: UnwindSafe, [InternalMemory<[u8; 1524]>; TX]: UnwindSafe,

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.

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.