#[non_exhaustive]pub enum SpecialFile {
Fifo,
CharDevice,
BlockDevice,
Socket,
}Expand description
A Unix file type that exarch never creates.
§Examples
use exarch_core::SpecialFile;
assert_eq!(SpecialFile::Fifo.noun(), "FIFO");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.
Fifo
A named pipe.
CharDevice
A character device node.
BlockDevice
A block device node.
Socket
A Unix domain socket.
Implementations§
Trait Implementations§
Source§impl Clone for SpecialFile
impl Clone for SpecialFile
impl Copy for SpecialFile
Source§impl Debug for SpecialFile
impl Debug for SpecialFile
impl Eq for SpecialFile
Source§impl PartialEq for SpecialFile
impl PartialEq for SpecialFile
impl StructuralPartialEq for SpecialFile
Auto Trait Implementations§
impl Freeze for SpecialFile
impl RefUnwindSafe for SpecialFile
impl Send for SpecialFile
impl Sync for SpecialFile
impl Unpin for SpecialFile
impl UnsafeUnpin for SpecialFile
impl UnwindSafe for SpecialFile
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.