pub struct StandardInformation {
pub created: Filetime,
pub modified: Filetime,
pub mft_modified: Filetime,
pub accessed: Filetime,
pub file_attributes: u32,
pub security_id: Option<u32>,
pub usn: Option<u64>,
}Expand description
Parsed $STANDARD_INFORMATION value.
Fields§
§created: FiletimeCreation time.
modified: FiletimeFile content modification time (“M”).
mft_modified: FiletimeMFT record modification time (“C” / entry-changed).
accessed: FiletimeLast access time (“A”).
file_attributes: u32FILE_ATTRIBUTE_* flags.
security_id: Option<u32>Security id (NTFS 3.0+), else None.
usn: Option<u64>$UsnJrnl update sequence number (NTFS 3.0+), else None.
Implementations§
Source§impl StandardInformation
impl StandardInformation
true if the hidden attribute is set.
Sourcepub fn is_read_only(&self) -> bool
pub fn is_read_only(&self) -> bool
true if the read-only attribute is set.
Sourcepub fn parse(content: &[u8]) -> Result<StandardInformation>
pub fn parse(content: &[u8]) -> Result<StandardInformation>
Parse a $STANDARD_INFORMATION value from its resident content bytes.
§Errors
NtfsError::TooShort when content is smaller than the minimum.
Trait Implementations§
Source§impl Clone for StandardInformation
impl Clone for StandardInformation
Source§fn clone(&self) -> StandardInformation
fn clone(&self) -> StandardInformation
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 moreSource§impl Debug for StandardInformation
impl Debug for StandardInformation
impl Eq for StandardInformation
Source§impl PartialEq for StandardInformation
impl PartialEq for StandardInformation
Source§fn eq(&self, other: &StandardInformation) -> bool
fn eq(&self, other: &StandardInformation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StandardInformation
Auto Trait Implementations§
impl Freeze for StandardInformation
impl RefUnwindSafe for StandardInformation
impl Send for StandardInformation
impl Sync for StandardInformation
impl Unpin for StandardInformation
impl UnsafeUnpin for StandardInformation
impl UnwindSafe for StandardInformation
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