Struct rcore_fs::vfs::Metadata [−][src]
Metadata of INode
Ref: [http://pubs.opengroup.org/onlinepubs/009604499/basedefs/sys/stat.h.html]
Fields
dev: usize
Device ID
inode: usize
Inode number
size: usize
Size in bytes
SFS Note: for normal file size is the actuate file size for directory this is count of dirent.
blk_size: usize
A file system-specific preferred I/O block size for this object. In some file system types, this may vary from file to file.
blocks: usize
Size in blocks
atime: Timespec
Time of last access
mtime: Timespec
Time of last modification
ctime: Timespec
Time of last change
type_: FileType
Type of file
mode: u16
Permission
nlinks: usize
Number of hard links
SFS Note: different from linux, “.” and “..” count in nlinks this is same as original ucore.
uid: usize
User ID
gid: usize
Group ID
rdev: usize
Raw 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>,