dope-sys 0.78.0

Typed operating-system call contracts
Documentation
use crate::{
    memory::buffer::provided,
    ring::ready::{Error, Ready},
};

type Failure<R> = Error<
    <R as Ready>::Ring,
    <R as Ready>::Producer,
    <<R as Ready>::Producer as provided::Producer>::Error,
    <R as Ready>::Registration,
    <R as Ready>::Registered,
    <R as Ready>::BufferError,
>;

pub trait Create: Ready {
    /// # Safety
    /// Keep this exact Context live until the reactor and every returned owner close.
    unsafe fn new(ring: Self::Ring, context: &Self::Context) -> Result<Self, Failure<Self>>;
}