Skip to main content

Create

Trait Create 

Source
pub trait Create: Ready {
    // Required method
    unsafe fn new(
        ring: Self::Ring,
        context: &Self::Context,
    ) -> Result<Self, Error<<Self as Ready>::Ring, <Self as Ready>::Producer, <<Self as Ready>::Producer as Producer>::Error, <Self as Ready>::Registration, <Self as Ready>::Registered, <Self as Ready>::BufferError>>;
}

Required Methods§

Source

unsafe fn new( ring: Self::Ring, context: &Self::Context, ) -> Result<Self, Error<<Self as Ready>::Ring, <Self as Ready>::Producer, <<Self as Ready>::Producer as Producer>::Error, <Self as Ready>::Registration, <Self as Ready>::Registered, <Self as Ready>::BufferError>>

§Safety

Keep this exact Context live until the reactor and every returned owner close.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§