Struct rcore_fs::vfs::Metadata [−][src]
Metadata of INode
Ref: [http://pubs.opengroup.org/onlinepubs/009604499/basedefs/sys/stat.h.html]
Fields
dev: usizeDevice ID
inode: usizeInode number
size: usizeSize in bytes
SFS Note: for normal file size is the actuate file size for directory this is count of dirent.
blk_size: usizeA file system-specific preferred I/O block size for this object. In some file system types, this may vary from file to file.
blocks: usizeSize in blocks
atime: TimespecTime of last access
mtime: TimespecTime of last modification
ctime: TimespecTime of last change
type_: FileTypeType of file
mode: u16Permission
nlinks: usizeNumber of hard links
SFS Note: different from linux, “.” and “..” count in nlinks this is same as original ucore.
uid: usizeUser ID
gid: usizeGroup ID
rdev: usizeRaw device id e.g. /dev/null: makedev(0x1, 0x3)
Trait Implementations
impl Clone for Metadata[src]
impl Debug for Metadata[src]
impl Eq for Metadata[src]
impl From<Metadata> for Metadata[src]
impl PartialEq<Metadata> for Metadata[src]
impl StructuralEq for Metadata[src]
impl StructuralPartialEq for Metadata[src]
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,