Enum async_mtzip::extra_field::ExtraField
source · pub enum ExtraField {
Ntfs {
mtime: u64,
atime: u64,
ctime: u64,
},
UnixExtendedTimestamp {
mod_time: Option<i32>,
ac_time: Option<i32>,
cr_time: Option<i32>,
},
UnixAttrs {
uid: u32,
gid: u32,
},
}
Expand description
Extra data that can be associated with a file or directory.
This library only implements the filesystem properties in NTFS and UNIX format.
Variants§
Ntfs
NTFS file properties.
Fields
UnixExtendedTimestamp
Info-Zip extended unix timestamp. Each part is optional by definition, but will be
populated by ExtraFields::new_from_fs
.
Fields
UnixAttrs
UNIX file/directory attributes defined by Info-Zip.
Trait Implementations§
source§impl Clone for ExtraField
impl Clone for ExtraField
source§fn clone(&self) -> ExtraField
fn clone(&self) -> ExtraField
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 moresource§impl Debug for ExtraField
impl Debug for ExtraField
source§impl PartialEq for ExtraField
impl PartialEq for ExtraField
source§fn eq(&self, other: &ExtraField) -> bool
fn eq(&self, other: &ExtraField) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ExtraField
impl Eq for ExtraField
impl StructuralPartialEq for ExtraField
Auto Trait Implementations§
impl Freeze for ExtraField
impl RefUnwindSafe for ExtraField
impl Send for ExtraField
impl Sync for ExtraField
impl Unpin for ExtraField
impl UnwindSafe for ExtraField
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more