pub struct ZipWriteOnly<IO: Write + Seek + Send + 'static> { /* private fields */ }
Expand description
A write-only zip archive filesystem
Implementations§
Source§impl<IO: Write + Seek + Send> ZipWriteOnly<IO>
impl<IO: Write + Seek + Send> ZipWriteOnly<IO>
Sourcepub fn new_strong(io: IO) -> Result<Self>
pub fn new_strong(io: IO) -> Result<Self>
Create a new write-only zip filesystem.
The underlying I/O will not be closed until the filesystem and all outstanding files are dropped.
Trait Implementations§
Source§impl<IO: Write + Seek + Send + 'static> FileSystem for ZipWriteOnly<IO>
impl<IO: Write + Seek + Send + 'static> FileSystem for ZipWriteOnly<IO>
Source§fn create_dir(&self, path: &str) -> VfsResult<()>
fn create_dir(&self, path: &str) -> VfsResult<()>
Creates the directory at this path Read more
Source§fn create_file(&self, path: &str) -> VfsResult<Box<dyn Write>>
fn create_file(&self, path: &str) -> VfsResult<Box<dyn Write>>
Creates a file at this path for writing
Source§fn metadata(&self, path: &str) -> VfsResult<VfsMetadata>
fn metadata(&self, path: &str) -> VfsResult<VfsMetadata>
Returns the file metadata for the file at this path
Source§fn exists(&self, path: &str) -> bool
fn exists(&self, path: &str) -> bool
Returns true if a file or directory at path exists, false otherwise
Source§fn read_dir(&self, _path: &str) -> VfsResult<Box<dyn Iterator<Item = String>>>
fn read_dir(&self, _path: &str) -> VfsResult<Box<dyn Iterator<Item = String>>>
Iterates over all entries of this directory path
Source§fn open_file(&self, _path: &str) -> VfsResult<Box<dyn SeekAndRead>>
fn open_file(&self, _path: &str) -> VfsResult<Box<dyn SeekAndRead>>
Opens the file at this path for reading
Source§fn append_file(&self, _path: &str) -> VfsResult<Box<dyn Write>>
fn append_file(&self, _path: &str) -> VfsResult<Box<dyn Write>>
Opens the file at this path for appending
Source§fn copy_file(&self, _src: &str, _dst: &str) -> VfsResult<()>
fn copy_file(&self, _src: &str, _dst: &str) -> VfsResult<()>
Copies the src path to the destination path within the same filesystem (optional)
Auto Trait Implementations§
impl<IO> Freeze for ZipWriteOnly<IO>
impl<IO> RefUnwindSafe for ZipWriteOnly<IO>
impl<IO> Send for ZipWriteOnly<IO>
impl<IO> Sync for ZipWriteOnly<IO>
impl<IO> Unpin for ZipWriteOnly<IO>
impl<IO> UnwindSafe for ZipWriteOnly<IO>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more