Struct cpio_archive::odc::OdcHeader
source · pub struct OdcHeader {
pub dev: u32,
pub inode: u32,
pub mode: u32,
pub uid: u32,
pub gid: u32,
pub nlink: u32,
pub rdev: u32,
pub mtime: u32,
pub file_size: u64,
pub name: String,
}
Expand description
Parsed portable ASCII format header.
Fields§
§dev: u32
§inode: u32
§mode: u32
§uid: u32
§gid: u32
§nlink: u32
§rdev: u32
§mtime: u32
§file_size: u64
§name: String
Implementations§
source§impl OdcHeader
impl OdcHeader
sourcepub fn from_reader(reader: &mut impl Read) -> CpioResult<Self>
pub fn from_reader(reader: &mut impl Read) -> CpioResult<Self>
Parse a header from a reader.
sourcepub fn write(&self, writer: &mut impl Write) -> CpioResult<u64>
pub fn write(&self, writer: &mut impl Write) -> CpioResult<u64>
Write the binary header content to a writer.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for OdcHeader
impl Send for OdcHeader
impl Sync for OdcHeader
impl Unpin for OdcHeader
impl UnwindSafe for OdcHeader
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