Skip to main content

Drain

Trait Drain 

Source
pub trait Drain {
    type Key;
    type Returned;
    type Flight;
    type Echo;
    type Class;
    type Driver;

    // Required methods
    fn driver(&self) -> Self::Driver;
    fn bind(&self, key: Self::Key) -> Option<Self::Flight>;
    fn retired(
        &self,
        returned: Self::Returned,
    ) -> Closed<Self::Echo, Self::Class>;
}
Expand description

Binds kernel identities to the host’s original affine completion owners.

Required Associated Types§

Required Methods§

Source

fn driver(&self) -> Self::Driver

Source

fn bind(&self, key: Self::Key) -> Option<Self::Flight>

Source

fn retired(&self, returned: Self::Returned) -> Closed<Self::Echo, Self::Class>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§