pub struct DmgBuilder { /* private fields */ }Expand description
Builder for creating DMG files
Implementations§
Source§impl DmgBuilder
impl DmgBuilder
Sourcepub fn compression(self, method: CompressionMethod) -> Self
pub fn compression(self, method: CompressionMethod) -> Self
Set compression method
Sourcepub fn compression_level(self, level: u32) -> Self
pub fn compression_level(self, level: u32) -> Self
Set compression level (0-9)
Sourcepub fn chunk_size(self, size: usize) -> Self
pub fn chunk_size(self, size: usize) -> Self
Set chunk size
Sourcepub fn skip_checksums(self, skip: bool) -> Self
pub fn skip_checksums(self, skip: bool) -> Self
Skip checksum generation for faster DMG creation
Sourcepub fn add_partition(self, name: &str, data: Vec<u8>) -> Self
pub fn add_partition(self, name: &str, data: Vec<u8>) -> Self
Add a partition
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DmgBuilder
impl RefUnwindSafe for DmgBuilder
impl Send for DmgBuilder
impl Sync for DmgBuilder
impl Unpin for DmgBuilder
impl UnsafeUnpin for DmgBuilder
impl UnwindSafe for DmgBuilder
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