Skip to main content

dope_sys/probe/session/
empty.rs

1use std::os::fd;
2
3use crate::probe::{
4    Stopped,
5    session::{Direct, Failure, Occupied, Session},
6};
7
8pub trait Empty: Session {
9    type Install;
10    type Direct: Direct<Empty = Self>;
11    type Occupied: Occupied<Empty = Self>;
12
13    fn create(self, probe: Self::Probe) -> Result<Self::Direct, Stopped<Self, Failure<Self>>>;
14    fn install(
15        self,
16        file: fd::BorrowedFd<'_>,
17    ) -> Result<Self::Occupied, Stopped<Self, Self::Install>>;
18}