pub struct LogicalVolumeInfo {
pub size: u64,
pub family_uuid: String,
pub lv_identifier: Option<String>,
pub name: Option<String>,
}Expand description
The LV logical size (bytes) and family UUID, from the decrypted metadata.
Fields§
§size: u64LV logical size in bytes.
family_uuid: StringFamily UUID string (tweak-key input), canonical form.
lv_identifier: Option<String>LV identifier UUID string, if present.
name: Option<String>LV name, if present.
Implementations§
Source§impl LogicalVolumeInfo
impl LogicalVolumeInfo
Sourcepub fn extract(metadata: &[u8]) -> Result<Self, FileVaultError>
pub fn extract(metadata: &[u8]) -> Result<Self, FileVaultError>
Extract the LV info from decrypted metadata.
§Errors
FileVaultError::MetadataStructureMissing if the family UUID is absent.
Trait Implementations§
Source§impl Clone for LogicalVolumeInfo
impl Clone for LogicalVolumeInfo
Source§fn clone(&self) -> LogicalVolumeInfo
fn clone(&self) -> LogicalVolumeInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LogicalVolumeInfo
impl RefUnwindSafe for LogicalVolumeInfo
impl Send for LogicalVolumeInfo
impl Sync for LogicalVolumeInfo
impl Unpin for LogicalVolumeInfo
impl UnsafeUnpin for LogicalVolumeInfo
impl UnwindSafe for LogicalVolumeInfo
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