dope-sys 0.77.0

Typed operating-system call contracts
Documentation
use crate::table::token::host::Flight;

/// Borrows the original flight arena without copying its completion authority.
pub trait Drain {
    type Key;
    type Fault;
    type Reported;
    type Driver<'d>
    where
        Self: 'd;
    type Flight<'d>: Flight<Key = Self::Key, Fault = Self::Fault, Reported = Self::Reported>
    where
        Self: 'd;

    /// # Safety
    /// This key's completion or terminal result came from the native owner paired with this arena and driver.
    /// Preserve its flow and retain owners until terminal completion or native quiescence.
    unsafe fn bind<'d>(
        &'d self,
        key: Self::Key,
        driver: &Self::Driver<'d>,
    ) -> Option<Self::Flight<'d>>;
    fn is_pending(&self) -> bool;
}