dope_sys/probe/session/create.rs
1use crate::{memory, probe::session::Empty};
2
3/// Capability setup retains the complete native owner on every failed stage.
4pub trait Create<P>: Empty {
5 type Cleanup: memory::Cleanup<P>;
6
7 fn try_new(ring: Self::Ring) -> Result<Self, Result<P, Self::Cleanup>>;
8 fn socket(self) -> Result<Self, Result<P, Self::Cleanup>>;
9 fn finish(self) -> Result<Self::Ring, Result<P, Self::Cleanup>>;
10}