pub struct RegularFile<'a> {
pub path: &'a str,
pub contents: &'a [u8],
pub mode: u32,
pub mtime: ArchiveTimestamp,
pub portable_metadata: PortableFileMetadata,
}Fields§
§path: &'a str§contents: &'a [u8]§mode: u32§mtime: ArchiveTimestamp§portable_metadata: PortableFileMetadataImplementations§
Trait Implementations§
Source§impl<'a> Clone for RegularFile<'a>
impl<'a> Clone for RegularFile<'a>
Source§fn clone(&self) -> RegularFile<'a>
fn clone(&self) -> RegularFile<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for RegularFile<'a>
impl<'a> Debug for RegularFile<'a>
impl<'a> Eq for RegularFile<'a>
Source§impl<'a> PartialEq for RegularFile<'a>
impl<'a> PartialEq for RegularFile<'a>
Source§impl RegularFileSource for RegularFile<'_>
impl RegularFileSource for RegularFile<'_>
fn archive_path(&self) -> &str
fn file_data_size(&self) -> u64
fn mode(&self) -> u32
fn mtime(&self) -> ArchiveTimestamp
fn portable_metadata(&self) -> PortableFileMetadata
fn open(&self) -> Result<Box<dyn Read + '_>, ArchiveWriteError>
fn entry_kind(&self) -> SourceEntryKind
Source§fn link_target(&self) -> Option<&[u8]>
fn link_target(&self) -> Option<&[u8]>
Link target bytes for a symbolic-link or hardlink source.
Source§fn sparse_extents(&self) -> Option<&[SparseExtent]>
fn sparse_extents(&self) -> Option<&[SparseExtent]>
Canonical allocated extents for a sparse regular file. Read more
Source§fn open_auxiliary(
&self,
ordinal: usize,
) -> Result<Box<dyn Read + '_>, ArchiveWriteError>
fn open_auxiliary( &self, ordinal: usize, ) -> Result<Box<dyn Read + '_>, ArchiveWriteError>
Opens a streamed auxiliary payload by its canonical ordinal. Read more
impl<'a> StructuralPartialEq for RegularFile<'a>
Auto Trait Implementations§
impl<'a> Freeze for RegularFile<'a>
impl<'a> RefUnwindSafe for RegularFile<'a>
impl<'a> Send for RegularFile<'a>
impl<'a> Sync for RegularFile<'a>
impl<'a> Unpin for RegularFile<'a>
impl<'a> UnsafeUnpin for RegularFile<'a>
impl<'a> UnwindSafe for RegularFile<'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