Struct ExtendedTimestamp

pub struct ExtendedTimestamp { /* private fields */ }

Extended timestamp, as described in https://libzip.org/specifications/extrafld.txt

Implementations

impl ExtendedTimestamp

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

creates an extended timestamp 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 len is empty or a read fails

fn mod_time(&self) -> Option<u32>

returns the last modification timestamp, if defined, as UNIX epoch seconds

fn ac_time(&self) -> Option<u32>

returns the last access timestamp, if defined, as UNIX epoch seconds

fn cr_time(&self) -> Option<u32>

returns the creation timestamp, if defined, as UNIX epoch seconds

Trait Implementations

impl Clone for ExtendedTimestamp

fn clone(&self) -> Self

impl Debug for ExtendedTimestamp

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

impl PartialEq for ExtendedTimestamp

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

impl StructuralPartialEq for ExtendedTimestamp

Auto Trait Implementations

impl Freeze for ExtendedTimestamp

impl RefUnwindSafe for ExtendedTimestamp

impl Send for ExtendedTimestamp

impl Sync for ExtendedTimestamp

impl Unpin for ExtendedTimestamp

impl UnsafeUnpin for ExtendedTimestamp

impl UnwindSafe for ExtendedTimestamp

Blanket Implementations

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

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

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

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

impl<T> From<T> for ExtendedTimestamp

impl<T> Same for ExtendedTimestamp

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

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

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

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