Skip to main content

Table

Trait Table 

Source
pub trait Table<E: Copy, const N: usize>: Create + Quiesce {
    type State: State<E, N>;
    type Occupied<'a>: Occupied<E>
       where Self: 'a;

    // Required methods
    fn bind(&mut self, index: u32) -> Result<Self::Occupied<'_>, Missing>;
    fn get(&mut self, index: u32) -> Option<Pin<&mut Self::State>>;
    fn retry_cancel(&mut self, index: u32);
}
Expand description

Address-stable option states indexed by physical descriptor slots.

Required Associated Types§

Source

type State: State<E, N>

Source

type Occupied<'a>: Occupied<E>
where Self: 'a,

Required Methods§

Source

fn bind(&mut self, index: u32) -> Result<Self::Occupied<'_>, Missing>

Source

fn get(&mut self, index: u32) -> Option<Pin<&mut Self::State>>

Source

fn retry_cancel(&mut self, index: u32)

Makes a failed cancellation retryable without releasing its chain. A late reply may only permit another attempt; it cannot clear a target.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§