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