Struct tar::UstarHeader [−][src]
Representation of the header of an entry in an archive
Fields
name: [u8; 100]
mode: [u8; 8]
uid: [u8; 8]
gid: [u8; 8]
size: [u8; 12]
mtime: [u8; 12]
cksum: [u8; 8]
typeflag: [u8; 1]
linkname: [u8; 100]
magic: [u8; 6]
version: [u8; 2]
uname: [u8; 32]
gname: [u8; 32]
dev_major: [u8; 8]
dev_minor: [u8; 8]
prefix: [u8; 155]
pad: [u8; 12]
Implementations
impl UstarHeader
[src]
pub fn path_bytes(&self) -> Cow<'_, [u8]>
[src]
See Header::path_bytes
pub fn set_path<P: AsRef<Path>>(&mut self, p: P) -> Result<()>
[src]
See Header::set_path
pub fn username_bytes(&self) -> &[u8]
[src]
See Header::username_bytes
pub fn set_username(&mut self, name: &str) -> Result<()>
[src]
See Header::set_username
pub fn groupname_bytes(&self) -> &[u8]
[src]
See Header::groupname_bytes
pub fn set_groupname(&mut self, name: &str) -> Result<()>
[src]
See Header::set_groupname
pub fn device_major(&self) -> Result<u32>
[src]
See Header::device_major
pub fn set_device_major(&mut self, major: u32)
[src]
See Header::set_device_major
pub fn device_minor(&self) -> Result<u32>
[src]
See Header::device_minor
pub fn set_device_minor(&mut self, minor: u32)
[src]
See Header::set_device_minor
pub fn as_header(&self) -> &Header
[src]
Views this as a normal Header
pub fn as_header_mut(&mut self) -> &mut Header
[src]
Views this as a normal Header
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UstarHeader
impl Send for UstarHeader
impl Sync for UstarHeader
impl Unpin for UstarHeader
impl UnwindSafe for UstarHeader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,