pub trait Context:
Close
+ Context
+ Context<Self::Complete> {
type Error: Failure<Cleanup = Self::Cleanup>;
type Cleanup: Retry + Failure;
type Complete: Token;
// Required methods
fn new(layout: Self::Layout) -> Result<Self, Self::Error>;
fn as_ptr(&self) -> *const u8;
}Expand description
Payload ownership and exact completed-prefix projection for one receive ring.
Required Associated Types§
type Error: Failure<Cleanup = Self::Cleanup>
type Cleanup: Retry + Failure
type Complete: Token
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".