[−][src]Struct mft::attr_x10::StandardInfoAttr
Fields
created: DateTime<Utc>
modified: DateTime<Utc>
mft_modified: DateTime<Utc>
accessed: DateTime<Utc>
file_flags: u32
max_version: u32
version: u32
class_id: u32
owner_id: u32
security_id: u32
quota: u64
usn: u64
Methods
impl StandardInfoAttr
[src]
pub fn from_reader<R: Read>(reader: &mut R) -> Result<StandardInfoAttr>
[src]
Parse a Standard Information attrbiute buffer.
Example
Parse a raw buffer.
use rustymft::attr_x10::StandardInfoAttr; let attribute_buffer: &[u8] = &[ 0x2F,0x6D,0xB6,0x6F,0x0C,0x97,0xCE,0x01,0x56,0xCD,0x1A,0x75,0x73,0xB5,0xCE,0x01, 0x56,0xCD,0x1A,0x75,0x73,0xB5,0xCE,0x01,0x56,0xCD,0x1A,0x75,0x73,0xB5,0xCE,0x01, 0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xB0,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x68,0x58,0xA0,0x0A,0x02,0x00,0x00,0x00 ]; let attribute = StandardInfoAttr::new(attribute_buffer).unwrap(); assert_eq!(attribute.created.0, 130207518909951279); assert_eq!(attribute.modified.0, 130240946730880342); assert_eq!(attribute.mft_modified.0, 130240946730880342); assert_eq!(attribute.accessed.0, 130240946730880342); assert_eq!(attribute.file_flags, 32); assert_eq!(attribute.max_version, 0); assert_eq!(attribute.version, 0); assert_eq!(attribute.class_id, 0); assert_eq!(attribute.security_id, 1456); assert_eq!(attribute.quota, 0); assert_eq!(attribute.usn, 8768215144);
Trait Implementations
impl Clone for StandardInfoAttr
[src]
fn clone(&self) -> StandardInfoAttr
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for StandardInfoAttr
[src]
impl Serialize for StandardInfoAttr
[src]
Auto Trait Implementations
impl Send for StandardInfoAttr
impl Sync for StandardInfoAttr
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,