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§
Sourcefn 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<'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.
Sourcefn purge_async(&self, object_id: u64)
fn purge_async(&self, object_id: u64)
Purges an object that is in the graveyard asynchronously.
Sourcefn tree(&self) -> &LSMTree<ObjectKey, ObjectValue>
fn tree(&self) -> &LSMTree<ObjectKey, ObjectValue>
Returns a reference to the store’s LSM tree.
Sourcefn filesystem(&self) -> Arc<dyn Filesystem> ⓘ
fn filesystem(&self) -> Arc<dyn Filesystem> ⓘ
Returns the filesystem that this store belongs to.
Trait Implementations§
Source§impl AsRef<dyn ObjectStoreTrait> for ObjectStore
impl AsRef<dyn ObjectStoreTrait> for ObjectStore
Source§fn as_ref(&self) -> &dyn ObjectStoreTrait
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".