dope_sys/probe/cleanup/release.rs
1use crate::memory;
2
3/// Failed removal retains the same fixed-file authority through every retry.
4pub trait Release<P>: memory::Cleanup<(P, Self::Target)> {
5 type Ring;
6 type File;
7 type Session;
8 type Target: Copy;
9
10 fn raw(ring: Self::Ring, file: Self::File, primary: P) -> Result<(P, Self::Target), Self>;
11 fn session(session: Self::Session, primary: P) -> Result<(P, Self::Target), Self>;
12}