Struct rc_zip::parse::ExtraUnixField
source · pub struct ExtraUnixField<'a> {
pub atime: u32,
pub mtime: u32,
pub uid: u16,
pub gid: u16,
pub data: Cow<'a, [u8]>,
}
Expand description
4.5.7 -UNIX Extra Field (0x000d):
Fields§
§atime: u32
file last access time
mtime: u32
file last modification time
uid: u16
file user id
gid: u16
file group id
data: Cow<'a, [u8]>
variable length data field
Implementations§
source§impl ExtraUnixField<'_>
impl ExtraUnixField<'_>
sourcepub fn to_owned(&self) -> ExtraUnixField<'static>
pub fn to_owned(&self) -> ExtraUnixField<'static>
Copy the structure and clone the original values.
This is always a deep copy.
source§impl ExtraUnixField<'_>
impl ExtraUnixField<'_>
sourcepub fn into_owned(self) -> ExtraUnixField<'static>
pub fn into_owned(self) -> ExtraUnixField<'static>
Copy the structure and clone the original values if it’s not owned.
This is always a deep copy of the structure.
Trait Implementations§
source§impl<'a> Clone for ExtraUnixField<'a>
impl<'a> Clone for ExtraUnixField<'a>
source§fn clone(&self) -> ExtraUnixField<'a>
fn clone(&self) -> ExtraUnixField<'a>
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 IntoOwned for ExtraUnixField<'_>
impl IntoOwned for ExtraUnixField<'_>
source§type Owned = ExtraUnixField<'static>
type Owned = ExtraUnixField<'static>
The type after obtaining ownership, should be the same as before but with static lifetime.
source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Copy the structure and clone the original values if it’s not owned. Read more
Auto Trait Implementations§
impl<'a> Freeze for ExtraUnixField<'a>
impl<'a> RefUnwindSafe for ExtraUnixField<'a>
impl<'a> Send for ExtraUnixField<'a>
impl<'a> Sync for ExtraUnixField<'a>
impl<'a> Unpin for ExtraUnixField<'a>
impl<'a> UnwindSafe for ExtraUnixField<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)