dope-sys 0.77.0

Typed operating-system call contracts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::probe::{
    Stopped,
    session::{Empty, Session},
};

pub trait Occupied: Session {
    type Empty: Empty<Occupied = Self>;
    type Target;
    type Remove;

    fn slot(&self) -> Self::Target;
    fn try_remove(self) -> Result<Self::Empty, Stopped<Self, Self::Remove>>;
}