pub trait ManagedFileOpener<File> where
    File: ManagedFile
{ fn open_for_read(
        &self,
        path: impl AsRef<Path> + Send,
        id: Option<u64>
    ) -> Result<File, Error>;
fn open_for_append(
        &self,
        path: impl AsRef<Path> + Send,
        id: Option<u64>
    ) -> Result<File, Error>; }
Expand description

A type that can open managed files.

Required methods

Opens a file at path with read-only permission.

Opens or creates a file at path, positioning the cursor at the end of the file.

Implementors