pub async fn open(
        object_handle: impl ObjectHandle + 'static,
        block_size: u32,
    ) -> Result<Arc<Self>, Error> {
        let size = object_handle.get_size();
        Ok(Arc::new(SimplePersistentLayer {
            object_handle: Arc::new(object_handle),
            block_size,
            size,
        }))
    }
/// Opens an existing layer that is accessible via |object_handle| (which provides a read
/// interface to the object).  The layer should have been written prior using
/// SimplePersistentLayerWriter.
Opens an existing layer that is accessible via |object_handle| (which provides a read
interface to the object).  The layer should have been written prior using
SimplePersistentLayerWriter.
Opens an existing layer that is accessible via |object_handle| ( which provides a read interface to the object ) . The layer should have been written prior using SimplePersistentLayerWriter .
pub async fn open(
        object_handle: impl ObjectHandle + 'static,
        block_size: u32,
    ) -> Result<Arc<Self>, Error> {
        let size = object_handle.get_size();
        Ok(Arc::new(SimplePersistentLayer {
            object_handle: Arc::new(object_handle),
            block_size,
            size,
        }))
    }
pub async fn open ( object_handle : impl ObjectHandle + ' static , block_size : u32 , ) -> Result < Arc < Self > , Error > { let size = object_handle . get_size ( ) ; Ok ( Arc :: new ( SimplePersistentLayer { object_handle : Arc :: new ( object_handle ) , block_size , size , } ) ) }
Opens an existing layer that is accessible via |object_handle| (which provides a read
interface to the object).
Opens an existing layer that is accessible via |object_handle| ( which provides a read interface to the object ) .
object_handle
impl ObjectHandle + 'static
block_size
u32
object_handle
impl ObjectHandle + 'static
block_size
u32