pub struct FileInfo {
pub node: Option<String>,
pub name: String,
pub size: i64,
pub mode: u32,
pub modified: i64,
pub is_dir: bool,
pub error: Option<String>,
pub link: Option<String>,
pub relative_name: String,
pub uid: u32,
pub gid: u32,
}Expand description
Information about a file or directory.
Fields§
§node: Option<String>Node that returned this info.
name: StringFile name (including path).
size: i64File size in bytes.
mode: u32UNIX mode/permission flags.
modified: i64UNIX timestamp of last modification.
is_dir: boolWhether this is a directory.
error: Option<String>Error message if any.
link: Option<String>Symlink target if this is a symlink.
relative_name: StringRelative name from root path.
uid: u32Owner UID.
gid: u32Owner GID.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnwindSafe for FileInfo
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
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