pub struct ZipArchive {
pub jobs_queue: Vec<ZipJob>,
/* private fields */
}
Fields§
§jobs_queue: Vec<ZipJob>
Implementations§
Source§impl ZipArchive
impl ZipArchive
pub fn new() -> Self
pub fn add_file_from_fs( &mut self, fs_path: PathBuf, archived_path: String, compression_level: Option<CompressionLevel>, compression_type: Option<CompressionType>, ) -> ZipJob
pub async fn add_file( &mut self, fs_path: PathBuf, archived_path: String, compression_level: Option<CompressionLevel>, compression_type: Option<CompressionType>, )
pub fn add_directory( &mut self, archived_path: String, attributes: Option<u16>, ) -> ZipJob
pub async fn write<W: AsyncWrite + AsyncSeek + Unpin>( &mut self, writer: &mut W, jobs_provider: Sender<ZipCommand>, process: Option<Sender<u64>>, ) -> Result<()>
Trait Implementations§
Source§impl Debug for ZipArchive
impl Debug for ZipArchive
Source§impl Default for ZipArchive
impl Default for ZipArchive
Source§fn default() -> ZipArchive
fn default() -> ZipArchive
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ZipArchive
impl RefUnwindSafe for ZipArchive
impl Send for ZipArchive
impl Sync for ZipArchive
impl Unpin for ZipArchive
impl UnwindSafe for ZipArchive
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