pub struct Builder { /* private fields */ }
Expand description
Builds metadata for one entry to be written into an archive.
Implementations§
source§impl Builder
impl Builder
sourcepub fn ino(self, ino: u32) -> Self
pub fn ino(self, ino: u32) -> Self
Set the inode number for this file. In modern times however, typically this is just a a unique index ID for the file, rather than the actual inode number.
sourcepub fn mode(self, mode: u32) -> Self
pub fn mode(self, mode: u32) -> Self
Set the file’s “mode” - the same as an inode “mode” field - containing permission bits and a bit of metadata about the type of file represented.
sourcepub fn dev_major(self, dev_major: u32) -> Self
pub fn dev_major(self, dev_major: u32) -> Self
Set the major component of the device ID, describing the device on which this file resides.
Device IDs are comprised of a major and minor component. The major component identifies the class of device, while the minor component identifies a specific device of that class.
sourcepub fn dev_minor(self, dev_minor: u32) -> Self
pub fn dev_minor(self, dev_minor: u32) -> Self
Set the minor component of the device ID, describing the device on which this file resides.
Device IDs are comprised of a major and minor component. The major component identifies the class of device, while the minor component identifies a specific device of that class.
sourcepub fn rdev_major(self, rdev_major: u32) -> Self
pub fn rdev_major(self, rdev_major: u32) -> Self
Set the major component of the rdev ID, describes the device that this file (inode) represents.
Device IDs are comprised of a major and minor component. The major component identifies the class of device, while the minor component identifies a specific device of that class.
sourcepub fn rdev_minor(self, rdev_minor: u32) -> Self
pub fn rdev_minor(self, rdev_minor: u32) -> Self
Set the minor component of the rdev ID, field describes the device that this file (inode) represents.
Device IDs are comprised of a major and minor component. The major component identifies the class of device, while the minor component identifies a specific device of that class.
sourcepub fn set_mode_file_type(self, file_type: ModeFileType) -> Self
pub fn set_mode_file_type(self, file_type: ModeFileType) -> Self
Set the mode file type of the entry