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>(reader: &mut R, len: u16) -> ZipResult<Self> where R: Read,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) -> ExtendedTimestamp
impl Debug for ExtendedTimestamp
fn fmt(&self, f: &mut Formatter<'_>) -> Result
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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ExtendedTimestamp
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ExtendedTimestamp
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ExtendedTimestamp
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ExtendedTimestamp
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Same for ExtendedTimestamp
type Output = T;
impl<T> ToOwned for ExtendedTimestamp
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for ExtendedTimestamp
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ExtendedTimestamp
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ExtendedTimestamp
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>