Struct cyfs_util::ZipPackage
source · [−]pub struct ZipPackage { /* private fields */ }Implementations
sourceimpl ZipPackage
impl ZipPackage
pub fn new() -> ZipPackage
pub fn load(&mut self, dir: &Path)
pub fn calc_hash(&mut self) -> Result<String, Box<dyn Error>>
pub fn begin_zip(&mut self, dest_file: &str) -> Result<(), Box<dyn Error>>
pub fn append_pkg_hash(&mut self) -> Result<(), Box<dyn Error>>
pub fn append_file(
&mut self,
path: &Path,
bytes: &[u8]
) -> Result<(), Box<dyn Error>>
pub fn finish_zip(&mut self) -> Result<(), Box<dyn Error>>
Auto Trait Implementations
impl RefUnwindSafe for ZipPackage
impl Send for ZipPackage
impl !Sync for ZipPackage
impl Unpin for ZipPackage
impl UnwindSafe for ZipPackage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more