pub struct ExtendedTimestamp { /* private fields */ }
Expand description
extended timestamp, as described in https://libzip.org/specifications/extrafld.txt
Implementations§
Source§impl ExtendedTimestamp
impl ExtendedTimestamp
Sourcepub fn try_from_reader<R>(reader: &mut R, len: u16) -> ZipResult<Self>where
R: Read,
pub 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
Sourcepub fn mod_time(&self) -> Option<u32>
pub fn mod_time(&self) -> Option<u32>
returns the last modification timestamp, if defined, as UNIX epoch seconds
Trait Implementations§
Source§impl Clone for ExtendedTimestamp
impl Clone for ExtendedTimestamp
Source§fn clone(&self) -> ExtendedTimestamp
fn clone(&self) -> ExtendedTimestamp
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ExtendedTimestamp
impl RefUnwindSafe for ExtendedTimestamp
impl Send for ExtendedTimestamp
impl Sync for ExtendedTimestamp
impl Unpin for ExtendedTimestamp
impl UnwindSafe for ExtendedTimestamp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more