[][src]Trait mini_fs::Store

pub trait Store {
    fn open(&self, path: &Path) -> Result<File>;

    fn open_write(&self, path: &Path) -> Result<File> { ... }
}

Generic filesystem abstraction.

Required methods

fn open(&self, path: &Path) -> Result<File>

Opens file in read-only mode.

Loading content...

Provided methods

fn open_write(&self, path: &Path) -> Result<File>

Opens a file in write-only mode.

Loading content...

Implementations on Foreign Types

impl<A, B, C, D, E, F, G, H> Store for (A, B, C, D, E, F, G, H) where
    A: Store,
    B: Store,
    C: Store,
    D: Store,
    E: Store,
    F: Store,
    G: Store,
    H: Store
[src]

fn open_write(&self, path: &Path) -> Result<File>[src]

impl<B, C, D, E, F, G, H> Store for (B, C, D, E, F, G, H) where
    B: Store,
    C: Store,
    D: Store,
    E: Store,
    F: Store,
    G: Store,
    H: Store
[src]

fn open_write(&self, path: &Path) -> Result<File>[src]

impl<C, D, E, F, G, H> Store for (C, D, E, F, G, H) where
    C: Store,
    D: Store,
    E: Store,
    F: Store,
    G: Store,
    H: Store
[src]

fn open_write(&self, path: &Path) -> Result<File>[src]

impl<D, E, F, G, H> Store for (D, E, F, G, H) where
    D: Store,
    E: Store,
    F: Store,
    G: Store,
    H: Store
[src]

fn open_write(&self, path: &Path) -> Result<File>[src]

impl<E, F, G, H> Store for (E, F, G, H) where
    E: Store,
    F: Store,
    G: Store,
    H: Store
[src]

fn open_write(&self, path: &Path) -> Result<File>[src]

impl<F, G, H> Store for (F, G, H) where
    F: Store,
    G: Store,
    H: Store
[src]

fn open_write(&self, path: &Path) -> Result<File>[src]

impl<G, H> Store for (G, H) where
    G: Store,
    H: Store
[src]

fn open_write(&self, path: &Path) -> Result<File>[src]

Loading content...

Implementors

impl Store for Local[src]

impl Store for MiniFs[src]

fn open_write(&self, path: &Path) -> Result<File>[src]

impl Store for Ram[src]

fn open_write(&self, path: &Path) -> Result<File>[src]

impl Store for Tar[src]

fn open_write(&self, path: &Path) -> Result<File>[src]

impl Store for Zip[src]

fn open_write(&self, path: &Path) -> Result<File>[src]

Loading content...