Skip to main content

SplitQueue

Struct SplitQueue 

Source
pub struct SplitQueue<'m> { /* private fields */ }

Implementations§

Source§

impl SplitQueue<'_>

Source

pub fn avail_index(&self) -> u16

Source

pub fn set_used_index(&self, val: u16)

Source

pub fn used_event(&self) -> Option<u16>

Source

pub fn set_avail_event(&self, op: impl FnOnce(&mut u16)) -> bool

Source

pub fn set_flag_notification(&self, enabled: bool)

Source

pub fn flag_interrupt_enabled(&self) -> bool

Source§

impl<'m> SplitQueue<'m>

Source

pub fn new( reg: &QueueReg, ram: &'m Ram, event_idx: bool, ) -> Result<Option<SplitQueue<'m>>, Error>

Trait Implementations§

Source§

impl<'m> Debug for SplitQueue<'m>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'m> VirtQueue<'m> for SplitQueue<'m>

Source§

const INIT_INDEX: u16 = 0

Source§

type Index = u16

Source§

fn desc_avail(&self, index: u16) -> bool

Source§

fn get_avail( &self, index: Self::Index, ram: &'m Ram, ) -> Result<Option<DescChain<'m>>, Error>

Source§

fn set_used(&self, index: Self::Index, id: u16, len: u32)

Source§

fn enable_notification(&self, enabled: bool)

Source§

fn interrupt_enabled(&self, index: Self::Index, _: u16) -> bool

Source§

fn index_add(&self, index: Self::Index, _: u16) -> Self::Index

Auto Trait Implementations§

§

impl<'m> Freeze for SplitQueue<'m>

§

impl<'m> RefUnwindSafe for SplitQueue<'m>

§

impl<'m> !Send for SplitQueue<'m>

§

impl<'m> !Sync for SplitQueue<'m>

§

impl<'m> Unpin for SplitQueue<'m>

§

impl<'m> UnsafeUnpin for SplitQueue<'m>

§

impl<'m> UnwindSafe for SplitQueue<'m>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.