pub struct Inode {
pub id: InodeId,
pub kind: InodeKind,
pub size: u64,
pub directory_page_ref: ObjectRef,
pub extent_map_ref: ObjectRef,
pub created_at: u64,
pub modified_at: u64,
}Expand description
Metadata for a single filesystem object (file or directory).
Fields§
§id: InodeId§kind: InodeKind§size: u64For files: total size in bytes. For directories: 0.
directory_page_ref: ObjectRefFor directories: reference to a DirectoryPage object. For files: ObjectRef::null().
extent_map_ref: ObjectRefFor files: reference to the ExtentMap object. For directories: ObjectRef::null().
created_at: u64Unix timestamp – seconds since epoch. Placeholder for now.
modified_at: u64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Inode
impl<'de> Deserialize<'de> for Inode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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