Skip to main content

Context

Trait Context 

Source
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§

Required Methods§

Source

fn new(layout: Self::Layout) -> Result<Self, Self::Error>

Source

fn as_ptr(&self) -> *const u8

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§