Trait engula_kernel::Bucket[][src]

pub trait Bucket: 'static + Clone + Send + Sync {
    type SequentialReader: AsyncRead + Send + Unpin;
    type SequentialWriter: AsyncWrite + Send + Unpin;
    fn delete_object<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn new_sequential_reader<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Self::SequentialReader, Error>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn new_sequential_writer<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Self::SequentialWriter, Error>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }
Expand description

An interface to manipulate a bucket.

Associated Types

Required methods

Deletes an object.

Errors

Returns Error::NotFound if the object doesn’t exist.

Returns a reader that reads sequentially from the object.

Returns a writer that writes sequentially to the object.

Implementations on Foreign Types

An interface to manipulate a bucket.

Implementors