KeyValueOp

Trait KeyValueOp 

Source
pub trait KeyValueOp {
    // Required methods
    fn put<'life0, 'async_trait, R>(
        &'life0 self,
        req: R,
    ) -> Pin<Box<dyn Future<Output = Result<PutResponse>> + Send + 'async_trait>>
       where R: Into<PutRequest> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn get<'life0, 'async_trait, R>(
        &'life0 self,
        req: R,
    ) -> Pin<Box<dyn Future<Output = Result<RangeResponse>> + Send + 'async_trait>>
       where R: Into<RangeRequest> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn get_all<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<RangeResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_by_prefix<'life0, 'async_trait, K>(
        &'life0 self,
        p: K,
    ) -> Pin<Box<dyn Future<Output = Result<RangeResponse>> + Send + 'async_trait>>
       where K: Into<Vec<u8>> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn get_range<'life0, 'async_trait, F, E>(
        &'life0 self,
        from: F,
        end: E,
    ) -> Pin<Box<dyn Future<Output = Result<RangeResponse>> + Send + 'async_trait>>
       where F: Into<Vec<u8>> + Send + 'async_trait,
             E: Into<Vec<u8>> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn delete<'life0, 'async_trait, R>(
        &'life0 self,
        req: R,
    ) -> Pin<Box<dyn Future<Output = Result<DeleteResponse>> + Send + 'async_trait>>
       where R: Into<DeleteRequest> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_all<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<DeleteResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_by_prefix<'life0, 'async_trait, K>(
        &'life0 self,
        p: K,
    ) -> Pin<Box<dyn Future<Output = Result<DeleteResponse>> + Send + 'async_trait>>
       where K: Into<Vec<u8>> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_range<'life0, 'async_trait, F, E>(
        &'life0 self,
        from: F,
        end: E,
    ) -> Pin<Box<dyn Future<Output = Result<DeleteResponse>> + Send + 'async_trait>>
       where F: Into<Vec<u8>> + Send + 'async_trait,
             E: Into<Vec<u8>> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn txn<'life0, 'async_trait, R>(
        &'life0 self,
        req: R,
    ) -> Pin<Box<dyn Future<Output = Result<TxnResponse>> + Send + 'async_trait>>
       where R: Into<TxnRequest> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn compact<'life0, 'async_trait, R>(
        &'life0 self,
        req: R,
    ) -> Pin<Box<dyn Future<Output = Result<CompactResponse>> + Send + 'async_trait>>
       where R: Into<CompactRequest> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn put<'life0, 'async_trait, R>( &'life0 self, req: R, ) -> Pin<Box<dyn Future<Output = Result<PutResponse>> + Send + 'async_trait>>
where R: Into<PutRequest> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Source

fn get<'life0, 'async_trait, R>( &'life0 self, req: R, ) -> Pin<Box<dyn Future<Output = Result<RangeResponse>> + Send + 'async_trait>>
where R: Into<RangeRequest> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_all<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<RangeResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_by_prefix<'life0, 'async_trait, K>( &'life0 self, p: K, ) -> Pin<Box<dyn Future<Output = Result<RangeResponse>> + Send + 'async_trait>>
where K: Into<Vec<u8>> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_range<'life0, 'async_trait, F, E>( &'life0 self, from: F, end: E, ) -> Pin<Box<dyn Future<Output = Result<RangeResponse>> + Send + 'async_trait>>
where F: Into<Vec<u8>> + Send + 'async_trait, E: Into<Vec<u8>> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete<'life0, 'async_trait, R>( &'life0 self, req: R, ) -> Pin<Box<dyn Future<Output = Result<DeleteResponse>> + Send + 'async_trait>>
where R: Into<DeleteRequest> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_all<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<DeleteResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_by_prefix<'life0, 'async_trait, K>( &'life0 self, p: K, ) -> Pin<Box<dyn Future<Output = Result<DeleteResponse>> + Send + 'async_trait>>
where K: Into<Vec<u8>> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_range<'life0, 'async_trait, F, E>( &'life0 self, from: F, end: E, ) -> Pin<Box<dyn Future<Output = Result<DeleteResponse>> + Send + 'async_trait>>
where F: Into<Vec<u8>> + Send + 'async_trait, E: Into<Vec<u8>> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Source

fn txn<'life0, 'async_trait, R>( &'life0 self, req: R, ) -> Pin<Box<dyn Future<Output = Result<TxnResponse>> + Send + 'async_trait>>
where R: Into<TxnRequest> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Source

fn compact<'life0, 'async_trait, R>( &'life0 self, req: R, ) -> Pin<Box<dyn Future<Output = Result<CompactResponse>> + Send + 'async_trait>>
where R: Into<CompactRequest> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

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§