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§
sourcefn root(&self) -> impl Future<Output = Result<String>> + MaybeSend
fn root(&self) -> impl Future<Output = Result<String>> + MaybeSend
Fetch the id for the root of the service.
Object Safety§
This trait is not object safe.