#[non_exhaustive]pub enum MemoryEntryKind {
File,
Directory,
Symlink,
Hardlink,
}Expand description
What a MemoryEntry or a CallbackEntry holds.
The string form is the one every language binding reports. Only a
CallbackEntry can be a Hardlink.
§Examples
use exarch_core::MemoryEntry;
use exarch_core::MemoryEntryKind;
assert_eq!(MemoryEntry::Directory.kind(), MemoryEntryKind::Directory);
assert_eq!(MemoryEntryKind::Symlink.as_str(), "symlink");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.
Directory
A directory the archive names explicitly.
Symlink
A symbolic link, stored as data.
Hardlink
A hard link to an already delivered file, by reference.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryEntryKind
impl Clone for MemoryEntryKind
Source§impl ClosedEnum for MemoryEntryKind
impl ClosedEnum for MemoryEntryKind
impl Copy for MemoryEntryKind
Source§impl Debug for MemoryEntryKind
impl Debug for MemoryEntryKind
Source§impl Display for MemoryEntryKind
impl Display for MemoryEntryKind
impl Eq for MemoryEntryKind
Source§impl PartialEq for MemoryEntryKind
impl PartialEq for MemoryEntryKind
impl StructuralPartialEq for MemoryEntryKind
Auto Trait Implementations§
impl Freeze for MemoryEntryKind
impl RefUnwindSafe for MemoryEntryKind
impl Send for MemoryEntryKind
impl Sync for MemoryEntryKind
impl Unpin for MemoryEntryKind
impl UnsafeUnpin for MemoryEntryKind
impl UnwindSafe for MemoryEntryKind
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.