Skip to main content

Select

Trait Select 

Source
pub trait Select {
    type Index: Copy;
    type Pending: Token<Index = Self::Index> + Pending<Complete: Token<Index = Self::Index, Length = <<Self::Pending as Pending>::Extent as Extent>::Length>>;

    // Required method
    unsafe fn select(
        &self,
        index: Self::Index,
    ) -> Result<Self::Pending, Self::Index>;
}
Expand description

A unique completion transfers one selected slot from its original ring.

Required Associated Types§

Source

type Index: Copy

Source

type Pending: Token<Index = Self::Index> + Pending<Complete: Token<Index = Self::Index, Length = <<Self::Pending as Pending>::Extent as Extent>::Length>>

Required Methods§

Source

unsafe fn select( &self, index: Self::Index, ) -> Result<Self::Pending, Self::Index>

§Safety

A unique CQE transfers any valid reported slot from this ring. Keep its payload live; project and return only through its original context/ring.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§