EntryHandler

Trait EntryHandler 

Source
pub trait EntryHandler<T: FileOptionExtension> {
    // Required method
    fn handle_entry<W: Write + Seek>(
        &self,
        writer: &mut ZipWriter<W>,
        root: &PathBuf,
        entry_path: &PathBuf,
        file_options: FileOptions<'_, T>,
        buffer: &mut Vec<u8>,
    ) -> ZipResult<()>;
}

Required Methods§

Source

fn handle_entry<W: Write + Seek>( &self, writer: &mut ZipWriter<W>, root: &PathBuf, entry_path: &PathBuf, file_options: FileOptions<'_, T>, buffer: &mut Vec<u8>, ) -> ZipResult<()>

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§

Source§

impl<T: FileOptionExtension> EntryHandler<T> for DefaultEntryHandler

Source§

impl<T: FileOptionExtension> EntryHandler<T> for PreserveSymlinksHandler