#[non_exhaustive]pub enum MemoryEntry {
File {
data: Vec<u8>,
mode: Option<SanitizedMode>,
},
Directory,
Symlink {
target: PathBuf,
},
}Expand description
An entry held by a MemorySink.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
File
A regular file.
Fields
§
mode: Option<SanitizedMode>The permission bits after setuid and setgid were stripped, if the archive carries any.
Directory
A directory the archive names explicitly.
Symlink
A symbolic link, stored as data.
Implementations§
Source§impl MemoryEntry
impl MemoryEntry
Sourcepub const fn kind(&self) -> MemoryEntryKind
pub const fn kind(&self) -> MemoryEntryKind
What the entry holds.
Trait Implementations§
Source§impl Clone for MemoryEntry
impl Clone for MemoryEntry
Source§impl Debug for MemoryEntry
impl Debug for MemoryEntry
impl Eq for MemoryEntry
Source§impl PartialEq for MemoryEntry
impl PartialEq for MemoryEntry
impl StructuralPartialEq for MemoryEntry
Auto Trait Implementations§
impl Freeze for MemoryEntry
impl RefUnwindSafe for MemoryEntry
impl Send for MemoryEntry
impl Sync for MemoryEntry
impl Unpin for MemoryEntry
impl UnsafeUnpin for MemoryEntry
impl UnwindSafe for MemoryEntry
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.