pub enum OpenMode {
File,
Dir,
}Expand description
How a leaf is opened for reading.
Variants§
File
A regular file. Unix adds O_NONBLOCK so a FIFO cannot block the open
before the caller gets a chance to refuse it — see unblock.
Dir
A directory, for a walk root.
Trait Implementations§
impl Copy for OpenMode
impl Eq for OpenMode
impl StructuralPartialEq for OpenMode
Auto Trait Implementations§
impl Freeze for OpenMode
impl RefUnwindSafe for OpenMode
impl Send for OpenMode
impl Sync for OpenMode
impl Unpin for OpenMode
impl UnsafeUnpin for OpenMode
impl UnwindSafe for OpenMode
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