OpenOptions

Trait OpenOptions 

Source
pub trait OpenOptions: Into<FileOptions> {
    // Required methods
    fn open<P: AsRef<Path>>(&self, path: P) -> Result<File<Cache>, ApiError>;
    fn open_using<Api: Api, P: AsRef<Path>>(
        &self,
        api: Api,
        path: P,
    ) -> Result<File<Api>, ApiError>;
}

Required Methods§

Source

fn open<P: AsRef<Path>>(&self, path: P) -> Result<File<Cache>, ApiError>

Open file with this options.

Source

fn open_using<Api: Api, P: AsRef<Path>>( &self, api: Api, path: P, ) -> Result<File<Api>, ApiError>

Open file with this options, using given api.

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§