Skip to main content

LayerPager

Trait LayerPager 

Source
pub trait LayerPager:
    Send
    + Sync
    + 'static {
    // Required method
    fn open_layer<'life0, 'async_trait>(
        &'life0 self,
        handle: DataObjectHandle<ObjectStore>,
        unwrapped_key: Option<UnwrappedKey>,
    ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn LayerObject>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Services registration of layer files with a platform-specific layer pager.

Required Methods§

Source

fn open_layer<'life0, 'async_trait>( &'life0 self, handle: DataObjectHandle<ObjectStore>, unwrapped_key: Option<UnwrappedKey>, ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn LayerObject>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§