Trait opendal::raw::PathQuery

source ·
pub trait PathQuery {
    // Required methods
    fn root(&self) -> impl Future<Output = Result<String>> + MaybeSend;
    fn query(
        &self,
        parent_id: &str,
        name: &str,
    ) -> impl Future<Output = Result<Option<String>>> + MaybeSend;
    fn create_dir(
        &self,
        parent_id: &str,
        name: &str,
    ) -> impl Future<Output = Result<String>> + MaybeSend;
}
Available on crate feature internal-path-cache only.
Expand description

The trait required for path cacher.

Required Methods§

source

fn root(&self) -> impl Future<Output = Result<String>> + MaybeSend

Fetch the id for the root of the service.

source

fn query( &self, parent_id: &str, name: &str, ) -> impl Future<Output = Result<Option<String>>> + MaybeSend

Query the id by parent_id and name.

source

fn create_dir( &self, parent_id: &str, name: &str, ) -> impl Future<Output = Result<String>> + MaybeSend

Create a dir by parent_id and name.

Object Safety§

This trait is not object safe.

Implementors§