pub enum LeafContent<T> {
Regular(T),
BlockDevice(u64),
CharacterDevice(u64),
Fifo,
Socket,
Symlink(Box<OsStr>),
}Expand description
Content types for leaf nodes (non-directory files).
Variants§
Regular(T)
A regular file with content of type T.
BlockDevice(u64)
A block device with the given device number.
CharacterDevice(u64)
A character device with the given device number.
Fifo
A named pipe (FIFO).
Socket
A Unix domain socket.
Symlink(Box<OsStr>)
A symbolic link pointing to the given target path.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for LeafContent<T>where
T: Freeze,
impl<T> RefUnwindSafe for LeafContent<T>where
T: RefUnwindSafe,
impl<T> Send for LeafContent<T>where
T: Send,
impl<T> Sync for LeafContent<T>where
T: Sync,
impl<T> Unpin for LeafContent<T>where
T: Unpin,
impl<T> UnwindSafe for LeafContent<T>where
T: UnwindSafe,
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