AsyncPoolContent

Trait AsyncPoolContent 

Source
pub trait AsyncPoolContent<T>:
    AsyncPoolContentError
    + Sized
    + 'static {
    type Ctx: Debug;

    // Required method
    fn new<'a>(
        ctx: &'a Self::Ctx,
    ) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + 'a>>;
}

Required Associated Types§

Required Methods§

Source

fn new<'a>( ctx: &'a Self::Ctx, ) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + 'a>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§