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 Freeze for OdcHeader
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
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
)