pub struct RamInode { /* private fields */ }Expand description
RamFS Inode结构
存储文件元数据和数据
Implementations§
Source§impl RamInode
impl RamInode
Sourcepub fn new_directory(ino: usize) -> RamInode
pub fn new_directory(ino: usize) -> RamInode
创建新的目录inode
Sourcepub fn metadata(&self) -> FileMetadata
pub fn metadata(&self) -> FileMetadata
Return file metadata for stat-like callers.
Sourcepub fn add_entry(
&mut self,
name: String,
inode: Arc<Mutex<RamInode>>,
) -> Result<(), FileError>
pub fn add_entry( &mut self, name: String, inode: Arc<Mutex<RamInode>>, ) -> Result<(), FileError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RamInode
impl !UnwindSafe for RamInode
impl Forget for RamInode
impl Freeze for RamInode
impl Send for RamInode
impl Sync for RamInode
impl Unpin for RamInode
impl UnsafeUnpin for RamInode
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