pub enum NodeKind {
Fifo,
Socket,
BlockDevice {
major: u32,
minor: u32,
},
CharDevice {
major: u32,
minor: u32,
},
}Expand description
Kind of special node for mknod; a tagged enum so callers never pack
S_IF* bits or pass meaningless major/minor for fifos and sockets.
Variants§
Fifo
Named pipe (FIFO).
Socket
Unix-domain socket node.
BlockDevice
Block device with the given major/minor numbers.
CharDevice
Character device with the given major/minor numbers.
Trait Implementations§
impl Copy for NodeKind
Source§impl<'de> Deserialize<'de> for NodeKind
impl<'de> Deserialize<'de> for NodeKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnsafeUnpin for NodeKind
impl UnwindSafe for NodeKind
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