pub struct OSInode {
readable: bool,
writable: bool,
inode: Mutex<InodeData>,
}Expand description
OS Inode
文件层级的 Inode 结构,对 内存 Inode MemInode 的文件读写访问的封装
一个 文件 (OS Inode) 可以被多个进程共享,因此需要实现 Send 和 Sync trait
Fields§
§readable: bool§writable: bool§inode: Mutex<InodeData>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for OSInode
impl !RefUnwindSafe for OSInode
impl Send for OSInode
impl Sync for OSInode
impl Unpin for OSInode
impl !UnwindSafe for OSInode
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