Feature gate: #![feature(metadata_statx)]
This is a tracking issue for adding a constructor that constructs a std::fs::Metadata struct from a *const c_void pointer populated by the statx syscall.
Public API
// use std::os::linux::fs::MetadataExt;
pub const STATX_MASK: c_int;
impl MetadataExt for Metadata {
unsafe fn from_statx(statxbuf: *const c_void) -> Metadata { ... }
}
Note: definition of this function is subject to change.
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
Unresolved Questions
Feature gate:
#![feature(metadata_statx)]This is a tracking issue for adding a constructor that constructs a
std::fs::Metadatastruct from a*const c_voidpointer populated by thestatxsyscall.Public API
Note: definition of this function is subject to change.
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)std::fs::Metadatafromstruct statxlibs-team#761Metadata:from_statxfor LinuxMetadataExttrait #156269Unresolved Questions
Metadata:from_statxfor LinuxMetadataExttrait #156269 (comment) and ImplementMetadata:from_statxfor LinuxMetadataExttrait #156269 (comment). We may want to get an explicit guarantee from at least the mailing list (unclear as of writing if that has been asked for yet).Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩