[][src]Trait kitty_pool::pool::kitty_pool::KittyPool

pub trait KittyPool: Debug {
    fn borrow<'life0, 'async_trait>(
        &'life0 mut self,
        requested_size: usize
    ) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn release(&mut self, token: &Token) -> Result<(), Error>;
fn read<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        token: &'life1 Token,
        data_to_read: &'life2 mut [u8]
    ) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
fn write<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        token: &'life1 Token,
        data_to_write: &'life2 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }

Required methods

fn borrow<'life0, 'async_trait>(
    &'life0 mut self,
    requested_size: usize
) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

fn release(&mut self, token: &Token) -> Result<(), Error>

fn read<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 mut self,
    token: &'life1 Token,
    data_to_read: &'life2 mut [u8]
) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

fn write<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 mut self,
    token: &'life1 Token,
    data_to_write: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl KittyPool for ContiguousKittyPool[src]

impl KittyPool for SGLKittyPool[src]

Loading content...