pub struct Inode { /* private fields */ }
Expand description
Inode is the data stored in each node of the filesystem.
Implementations§
Source§impl Inode
impl Inode
Sourcepub fn dir(uid: u32, gid: u32, mode: UnixPex) -> Self
pub fn dir(uid: u32, gid: u32, mode: UnixPex) -> Self
Create a new Inode
with type Directory with the given metadata and content.
Sourcepub fn file(uid: u32, gid: u32, mode: UnixPex, data: Vec<u8>) -> Self
pub fn file(uid: u32, gid: u32, mode: UnixPex, data: Vec<u8>) -> Self
Create a new Inode
with type File with the given metadata and content.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Inode
impl RefUnwindSafe for Inode
impl Send for Inode
impl Sync for Inode
impl Unpin 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