pub trait Create: Close + Sized {
type Setup: Copy;
type Map: Copy;
type Unmap;
type Cleanup: Cleanup<Cause<Self::Setup, Self::Map>, Error = Failure<Self::Unmap>>;
// Required method
fn new<const MIN: u32, const MAX: u32, const CQ: u32>(
submit: U32<MIN, MAX>,
complete: U32<1, CQ>,
defer: bool,
) -> Result<Self, Error<<Self as Create>::Setup, <Self as Create>::Map, <Self as Create>::Cleanup>>;
}Expand description
Creates a single-issuer ring with the requested queue capacities.
Required Associated Types§
type Setup: Copy
type Map: Copy
type Unmap
type Cleanup: Cleanup<Cause<Self::Setup, Self::Map>, Error = Failure<Self::Unmap>>
Required Methods§
fn new<const MIN: u32, const MAX: u32, const CQ: u32>( submit: U32<MIN, MAX>, complete: U32<1, CQ>, defer: bool, ) -> Result<Self, Error<<Self as Create>::Setup, <Self as Create>::Map, <Self as Create>::Cleanup>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".