dope-sys 0.43.0

Typed operating-system call contracts
Documentation
1
2
3
4
5
6
7
8
9
use crate::table::registry::Entry;

/// Exclusively owns the exact registered read through infallible removal.
pub trait Occupied: Sized {
    type Entry: Entry;

    fn get(&self) -> &Self::Entry;
    fn remove(self) -> Self::Entry;
}