Skip to main content

dope_sys/memory/buffer/
mod.rs

1pub mod canary;
2mod pool;
3pub mod provided;
4pub mod raw;
5mod source;
6
7pub use pool::Pool;
8pub use source::Source;
9mod index;
10pub use index::Index;
11
12/// Exact native selection failure retains the caller's admitted buffer layout.
13pub trait Selection<L: Copy + Eq> {
14    type Error: Copy + Eq;
15}
16
17/// Consumes receive ownership through its native return mechanism.
18///
19/// Self-contained pool leases return immediately. Registered ring slots retain
20/// their exact token until the owning engine publishes the deferred return.
21pub trait Recycle: Sized {
22    type Deferred;
23
24    fn recycle(self) -> Option<Self::Deferred>;
25}