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

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,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

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

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for Ntfs

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Same for Ntfs

type Output = T;

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>