pub struct Inode { /* private fields */ }Expand description
Virtual filesystem layer over easy-fs
Implementations§
Source§impl Inode
impl Inode
Sourcepub fn new(
block_id: u32,
block_offset: usize,
fs: Arc<Mutex<EasyFileSystem>>,
block_device: Arc<dyn BlockDevice>,
) -> Self
pub fn new( block_id: u32, block_offset: usize, fs: Arc<Mutex<EasyFileSystem>>, block_device: Arc<dyn BlockDevice>, ) -> Self
Create a vfs inode
Auto Trait Implementations§
impl Freeze for Inode
impl !RefUnwindSafe for Inode
impl Send for Inode
impl Sync for Inode
impl Unpin for Inode
impl UnsafeUnpin for Inode
impl !UnwindSafe for Inode
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