pub async fn lookup(&self, name: &str) -> Result<(u64, ObjectDescriptor), Error> {
        let item = self
            .store
            .tree()
            .find(&ObjectKey::child(self.object_id, name))
            .await?
            .ok_or(FxfsError::NotFound)?;
        if let ObjectValue::Child { object_id, object_descriptor } = item.value {
            Ok((object_id, object_descriptor))
        } else {
            bail!(FxfsError::Inconsistent);
        }
    }
/// Returns the object ID and descriptor for the given child, or FxfsError::NotFound if not
/// found.
Returns the object ID and descriptor for the given child, or FxfsError::NotFound if not
found.
Returns the object ID and descriptor for the given child or FxfsError :: NotFound if not found .
pub async fn lookup(&self, name: &str) -> Result<(u64, ObjectDescriptor), Error> {
        let item = self
            .store
            .tree()
            .find(&ObjectKey::child(self.object_id, name))
            .await?
            .ok_or(FxfsError::NotFound)?;
        if let ObjectValue::Child { object_id, object_descriptor } = item.value {
            Ok((object_id, object_descriptor))
        } else {
            bail!(FxfsError::Inconsistent);
        }
    }
pub async fn lookup ( & self , name : & str ) -> Result < ( u64 , ObjectDescriptor ) , Error > { let item = self . store . tree ( ) . find ( & ObjectKey :: child ( self . object_id , name ) ) . await ? . ok_or ( FxfsError :: NotFound ) ? ; if let ObjectValue :: Child { object_id , object_descriptor } = item . value { Ok ( ( object_id , object_descriptor ) ) } else { bail ! ( FxfsError Inconsistent ) ; } }
Returns the object ID and descriptor for the given child, or FxfsError::NotFound if not
found.
Returns the object ID and descriptor for the given child or FxfsError :: NotFound if not found .
&self
name
&str
&self
name
&str