Struct Ntfs

pub struct Ntfs { /* private fields */ }

The NTFS extra field as described in PKWARE's APPNOTE.TXT v6.3.9.

This field stores Windows file times, which are 64-bit unsigned integer values that represents the number of 100-nanosecond intervals that have elapsed since "1601-01-01 00:00:00 UTC".

Implementations

impl Ntfs

fn try_from_reader<R>(reader: &mut R, len: u16) -> ZipResult<Self>
where
    R: Read,

Creates a NTFS extra field struct by reading the required bytes from the reader.

This method assumes that the length has already been read, therefore it must be passed as an argument.

Errors

Fails if the NTFS extra field doesn't have the correct length or a read fails

fn mtime(&self) -> u64

Returns the file last modification time as a file time.

fn atime(&self) -> u64

Returns the file last access time as a file time.

fn ctime(&self) -> u64

Returns the file creation time as a file time.

Trait Implementations

impl Clone for Ntfs

fn clone(&self) -> Self

impl Debug for Ntfs

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl PartialEq for Ntfs

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for Ntfs

Auto Trait Implementations

impl Freeze for Ntfs

impl RefUnwindSafe for Ntfs

impl Send for Ntfs

impl Sync for Ntfs

impl Unpin for Ntfs

impl UnsafeUnpin for Ntfs

impl UnwindSafe for Ntfs

Blanket Implementations

impl<T> Any for Ntfs where T: 'static + ?Sized,

impl<T> Borrow<T> for Ntfs where T: ?Sized,

impl<T> BorrowMut<T> for Ntfs where T: ?Sized,

impl<T> CloneToUninit for Ntfs where T: Clone,

impl<T> From<T> for Ntfs

impl<T> Same for Ntfs

impl<T> ToOwned for Ntfs where T: Clone,

impl<T, U> Into<U> for Ntfs where U: From<T>,

impl<T, U> TryFrom<U> for Ntfs where U: Into<T>,

impl<T, U> TryInto<U> for Ntfs where U: TryFrom<T>,