#[repr(u8)]pub enum DirEntryType {
Unknown = 0,
Fifo = 1,
Character = 2,
Directory = 4,
Block = 6,
Regular = 8,
Symlink = 10,
Socket = 12,
}Expand description
Type d’entrée de répertoire retourné par getdents64(2).
Correspond au champ d_type de la struct linux_dirent64.
La valeur Unknown (0) est produite sur les filesystems qui ne
stockent pas le type (ex. certains systèmes de fichiers en réseau).
Variants§
Unknown = 0
Type inconnu (filesystem ne stocke pas le type).
Fifo = 1
FIFO (pipe nommé).
Character = 2
Fichier caractère.
Directory = 4
Répertoire.
Block = 6
Fichier bloc.
Regular = 8
Fichier régulier.
Symlink = 10
Lien symbolique.
Socket = 12
Socket Unix.
Trait Implementations§
Source§impl Clone for DirEntryType
impl Clone for DirEntryType
Source§fn clone(&self) -> DirEntryType
fn clone(&self) -> DirEntryType
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 moreimpl Copy for DirEntryType
Source§impl Debug for DirEntryType
impl Debug for DirEntryType
impl Eq for DirEntryType
Source§impl PartialEq for DirEntryType
impl PartialEq for DirEntryType
impl StructuralPartialEq for DirEntryType
Auto Trait Implementations§
impl Freeze for DirEntryType
impl RefUnwindSafe for DirEntryType
impl Send for DirEntryType
impl Sync for DirEntryType
impl Unpin for DirEntryType
impl UnsafeUnpin for DirEntryType
impl UnwindSafe for DirEntryType
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