pub struct SparseImageFile { /* private fields */ }Expand description
Mac OS sparse image (.sparseimage) file.
Implementations§
Source§impl SparseImageFile
impl SparseImageFile
Sourcepub fn get_block_size(&self) -> u32
pub fn get_block_size(&self) -> u32
Retrieves the block size.
Sourcepub fn get_bytes_per_sector(&self) -> u16
pub fn get_bytes_per_sector(&self) -> u16
Retrieves the bytes per sector.
Sourcepub fn get_data_stream(&self) -> Option<DataStreamReference>
pub fn get_data_stream(&self) -> Option<DataStreamReference>
Retrieves a data stream.
Sourcepub fn get_encryption_type(&self) -> Option<&CdsaEncrEncryptionType>
pub fn get_encryption_type(&self) -> Option<&CdsaEncrEncryptionType>
Retrieves the encryption type.
Sourcepub fn get_media_size(&self) -> u64
pub fn get_media_size(&self) -> u64
Retrieves the media size.
Sourcepub fn read_data_stream(
&mut self,
data_stream: &DataStreamReference,
) -> Result<(), ErrorTrace>
pub fn read_data_stream( &mut self, data_stream: &DataStreamReference, ) -> Result<(), ErrorTrace>
Reads a file from a data stream.
Sourcepub fn unlock(
&mut self,
credentials: &[CdsaEncrCredential],
) -> Result<bool, ErrorTrace>
pub fn unlock( &mut self, credentials: &[CdsaEncrCredential], ) -> Result<bool, ErrorTrace>
Unlocks a locked (encrypted) file.
Auto Trait Implementations§
impl Forget for SparseImageFile
impl Freeze for SparseImageFile
impl Move for SparseImageFile
impl RefUnwindSafe for SparseImageFile
impl Send for SparseImageFile
impl Sync for SparseImageFile
impl Unpin for SparseImageFile
impl UnsafeUnpin for SparseImageFile
impl UnwindSafe for SparseImageFile
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