[][src]Struct gvfs::vfs::ZipFS

pub struct ZipFS { /* fields omitted */ }

A filesystem backed by a zip file.

Methods

impl ZipFS[src]

pub fn new(filename: &Path) -> Result<Self>[src]

Make new VFS from a zip file

pub fn from_read<R>(reader: R) -> Result<Self> where
    R: Read + Seek + 'static, 
[src]

Creates a ZipFS from any Read+Seek object, most useful with an in-memory std::io::Cursor.

Trait Implementations

impl VFS for ZipFS[src]

fn read_dir(
    &self,
    path: &Path
) -> Result<Box<dyn Iterator<Item = Result<PathBuf>>>>
[src]

Zip files don't have real directories, so we (incorrectly) hack it by just looking for a path prefix for now.

fn open(&self, path: &Path) -> Result<Box<dyn VFile>>[src]

Open the file at this path for reading

fn create(&self, path: &Path) -> Result<Box<dyn VFile>>[src]

Open the file at this path for writing, truncating it if it exists already

fn append(&self, path: &Path) -> Result<Box<dyn VFile>>[src]

Open the file at this path for appending, creating it if necessary

impl Debug for ZipFS[src]

Auto Trait Implementations

impl !Sync for ZipFS

impl Unpin for ZipFS

impl !Send for ZipFS

impl !UnwindSafe for ZipFS

impl !RefUnwindSafe for ZipFS

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]