dope-sys 0.33.0

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

/// Failed removal retains the same fixed-file authority through every retry.
pub trait Release<P>: memory::Cleanup<(P, Self::Target)> {
    type Ring;
    type File;
    type Session;
    type Target: Copy;

    fn raw(ring: Self::Ring, file: Self::File, primary: P) -> Result<(P, Self::Target), Self>;
    fn session(session: Self::Session, primary: P) -> Result<(P, Self::Target), Self>;
}