[−][src]Struct ipfs_unixfs::Metadata
A container for the UnixFs metadata, which can be present at the root of the file, directory, or symlink trees.
Implementations
impl Metadata
[src]
pub fn mode(&self) -> Option<u32>
[src]
Returns the full file mode, if one has been specified.
The full file mode is originally read through st_mode
field of stat
struct defined in
sys/stat.h
and its defining OpenGroup standard. The lowest 3 bytes correspond to read,
write, and execute rights per user, group, and other, while the 4th byte determines sticky bits,
set user id or set group id. The following two bytes correspond to the different file types, as
defined by the same OpenGroup standard:
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html
pub fn mtime(&self) -> Option<(i64, u32)>
[src]
Returns the raw timestamp of last modification time, if specified.
The timestamp is (seconds, nanos)
- similar to std::time::Duration
, with the exception of
allowing seconds to be negative. The seconds are calculated from 1970-01-01 00:00:00
or
the common "unix epoch".
pub fn mtime_as_filetime(&self) -> Option<FileTime>
[src]
Returns the mtime metadata as a FileTime
. Enabled only in the filetime
feature.
Trait Implementations
impl<'_> AsRef<Metadata> for FileReader<'_>
[src]
impl AsRef<Metadata> for Traversal
[src]
impl AsRef<Metadata> for FileVisit
[src]
impl Clone for Metadata
[src]
impl Debug for Metadata
[src]
impl Default for Metadata
[src]
impl Eq 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,
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> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,