pub struct DirEntry {
pub name: String,
pub entry_type: EntryType,
pub size: u64,
pub modified_time: f64,
pub mode: u32,
}Expand description
One entry in a directory listing from the filesystem ls helper.
Fields§
§name: StringThe entry’s base name, with no directory prefix.
entry_type: EntryTypeWhether the entry is a file, directory, symlink, or other special file.
Reported for the entry itself, so a symlink is Symlink regardless of
what it points at.
size: u64Size in bytes as reported by the guest.
modified_time: f64Last-modified time as a Unix timestamp in seconds (with a fractional part).
mode: u32Unix permission bits, e.g. 0o644. The file-type bits are not included.
Trait Implementations§
impl StructuralPartialEq for DirEntry
Auto Trait Implementations§
impl Freeze for DirEntry
impl RefUnwindSafe for DirEntry
impl Send for DirEntry
impl Sync for DirEntry
impl Unpin for DirEntry
impl UnsafeUnpin for DirEntry
impl UnwindSafe for DirEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request