dope-sys 0.36.0

Typed operating-system call contracts
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::table::token::host;

/// Affine close encoding retaining the descriptor domain lifetime.
pub trait Close<'d>: Sized {
    type Context: host::Context;

    fn new(close: &<Self::Context as host::Context>::Close<'d>) -> Self;
    fn retire(retire: &<Self::Context as host::Context>::Retire<'d>) -> Self;
    fn raw(self) -> u64;
    fn decode(raw: u64) -> Option<<Self::Context as host::Context>::Returned>;
}