/// Opens a graveyard object in `store`.
Opens a graveyard object in `store`.
Opens a graveyard object in ` store ` .
pub async fn open(store: &Arc<ObjectStore>, object_id: u64) -> Result<Graveyard, Error> {
        store.ensure_open().await?;
        if let ObjectItem {
            value: ObjectValue::Object { kind: ObjectKind::Graveyard, .. }, ..
        } = store.tree.find(&ObjectKey::object(object_id)).await?.ok_or(FxfsError::NotFound)?
        {
            Ok(Graveyard { store: store.clone(), object_id })
        } else {
            bail!("Found an object, but it's not a graveyard");
        }
    }
pub async fn open ( store : & Arc < ObjectStore > , object_id : u64 ) -> Result < Graveyard , Error > { store . ensure_open ( ) . await ? ; if let ObjectItem { value : ObjectValue :: Object { kind : ObjectKind :: Graveyard , .. } , .. } = store . tree . find ( & ObjectKey :: object ( object_id ) ) . await ? . ok_or ( FxfsError :: NotFound ) ? { Ok ( Graveyard { store : store . clone ( ) , object_id } ) } else { bail ! ( " " ) ; } }
Opens a graveyard object in `store`.
Opens a graveyard object in ` store ` .
store
&Arc<ObjectStore>
object_id
u64