Skip to main content

ObjectStoreTrait

Trait ObjectStoreTrait 

Source
pub trait ObjectStoreTrait:
    Send
    + Sync
    + 'static {
    // Required methods
    fn purge<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        object_id: u64,
        truncate_guard: Option<&'life1 TruncateGuard<'life2>>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn purge_async(&self, object_id: u64);
    fn tree(&self) -> &LSMTree<ObjectKey, ObjectValue>;
    fn filesystem(&self) -> Arc<dyn Filesystem> ⓘ;
}

Required Methods§

Source

fn purge<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, object_id: u64, truncate_guard: Option<&'life1 TruncateGuard<'life2>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Purges an object that is in the graveyard.

Source

fn purge_async(&self, object_id: u64)

Purges an object that is in the graveyard asynchronously.

Source

fn tree(&self) -> &LSMTree<ObjectKey, ObjectValue>

Returns a reference to the store’s LSM tree.

Source

fn filesystem(&self) -> Arc<dyn Filesystem> ⓘ

Returns the filesystem that this store belongs to.

Trait Implementations§

Source§

impl AsRef<dyn ObjectStoreTrait> for ObjectStore

Source§

fn as_ref(&self) -> &dyn ObjectStoreTrait

Converts this type into a shared reference of the (usually inferred) input type.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§