pub enum XarEntryKind<'a> {
File {
data: &'a [u8],
mode: u32,
store: bool,
},
Directory {
mode: u32,
children: Vec<XarEntry<'a>>,
},
}Variants§
File
Regular file. mode holds the permission bits (e.g. 0o755; only
the low 12 bits are used). With store set the data goes into the
heap verbatim (application/octet-stream) instead of
zlib-compressed — Apple stores the already-gzipped Payload that way.
Directory
Directory holding child entries.
Auto Trait Implementations§
impl<'a> Freeze for XarEntryKind<'a>
impl<'a> RefUnwindSafe for XarEntryKind<'a>
impl<'a> Send for XarEntryKind<'a>
impl<'a> Sync for XarEntryKind<'a>
impl<'a> Unpin for XarEntryKind<'a>
impl<'a> UnsafeUnpin for XarEntryKind<'a>
impl<'a> UnwindSafe for XarEntryKind<'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