pub trait PathQuery {
// Required methods
fn root(&self) -> impl Future<Output = Result<String, Error>> + MaybeSend;
fn query(
&self,
parent_id: &str,
name: &str,
) -> impl Future<Output = Result<Option<String>, Error>> + MaybeSend;
fn create_dir(
&self,
parent_id: &str,
name: &str,
) -> impl Future<Output = Result<String, Error>> + MaybeSend;
}Expand description
The trait required for path cacher.
Required Methods§
Sourcefn root(&self) -> impl Future<Output = Result<String, Error>> + MaybeSend
fn root(&self) -> impl Future<Output = Result<String, Error>> + MaybeSend
Fetch the id for the root of the service.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.