FromPath

Trait FromPath 

Source
pub trait FromPath: Sized + DeserializeOwned {
    // Provided method
    fn from_path<'async_trait, P>(
        path: P,
    ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
       where P: AsRef<Path> + Send + 'async_trait,
             Self: Send + 'async_trait { ... }
}

Provided Methods§

Source

fn from_path<'async_trait, P>( path: P, ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
where P: AsRef<Path> + Send + 'async_trait, Self: Send + 'async_trait,

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.

Implementors§