Struct ntfs::structured_values::NtfsVolumeInformation
source · pub struct NtfsVolumeInformation { /* private fields */ }
Expand description
Structure of a $VOLUME_INFORMATION attribute.
This attribute is only used by the top-level $Volume file and contains general information about the filesystem.
You can easily access it via Ntfs::volume_info
.
A $VOLUME_INFORMATION attribute is always resident.
Reference: https://flatcap.github.io/linux-ntfs/ntfs/attributes/volume_information.html
Implementations§
source§impl NtfsVolumeInformation
impl NtfsVolumeInformation
sourcepub fn flags(&self) -> NtfsVolumeFlags
pub fn flags(&self) -> NtfsVolumeFlags
Returns flags set for this NTFS filesystem/volume as specified by NtfsVolumeFlags
.
sourcepub fn major_version(&self) -> u8
pub fn major_version(&self) -> u8
Returns the major NTFS version of this filesystem (e.g. 3
for NTFS 3.1).
sourcepub fn minor_version(&self) -> u8
pub fn minor_version(&self) -> u8
Returns the minor NTFS version of this filesystem (e.g. 1
for NTFS 3.1).
Trait Implementations§
source§impl Clone for NtfsVolumeInformation
impl Clone for NtfsVolumeInformation
source§fn clone(&self) -> NtfsVolumeInformation
fn clone(&self) -> NtfsVolumeInformation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NtfsVolumeInformation
impl Debug for NtfsVolumeInformation
source§impl<'n, 'f> NtfsStructuredValue<'n, 'f> for NtfsVolumeInformation
impl<'n, 'f> NtfsStructuredValue<'n, 'f> for NtfsVolumeInformation
const TY: NtfsAttributeType = NtfsAttributeType::VolumeInformation
source§fn from_attribute_value<T>(
fs: &mut T,
value: NtfsAttributeValue<'n, 'f>
) -> Result<Self>where
T: Read + Seek,
fn from_attribute_value<T>( fs: &mut T, value: NtfsAttributeValue<'n, 'f> ) -> Result<Self>where T: Read + Seek,
Create a structured value from an arbitrary
NtfsAttributeValue
.source§impl<'n, 'f> NtfsStructuredValueFromResidentAttributeValue<'n, 'f> for NtfsVolumeInformation
impl<'n, 'f> NtfsStructuredValueFromResidentAttributeValue<'n, 'f> for NtfsVolumeInformation
source§fn from_resident_attribute_value(
value: NtfsResidentAttributeValue<'f>
) -> Result<Self>
fn from_resident_attribute_value( value: NtfsResidentAttributeValue<'f> ) -> Result<Self>
Create a structured value from a resident attribute value. Read more
Auto Trait Implementations§
impl RefUnwindSafe for NtfsVolumeInformation
impl Send for NtfsVolumeInformation
impl Sync for NtfsVolumeInformation
impl Unpin for NtfsVolumeInformation
impl UnwindSafe for NtfsVolumeInformation
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