pub struct FileEntry {
pub path: OsString,
pub is_dir: bool,
pub is_executable: bool,
pub mode: u32,
pub size: u64,
pub modified: SystemTime,
pub owner: String,
pub group: String,
pub nlink: u64,
}Fields§
§path: OsString§is_dir: bool§is_executable: bool§mode: u32§size: u64§modified: SystemTime§owner: String§group: String§nlink: u64Implementations§
Source§impl FileEntry
impl FileEntry
pub fn get_icon(&self) -> String
pub fn get_icon_custom(&self, config: &IconConfig) -> String
pub fn get_color(&self, config: &ColorConfig) -> Color
pub fn get_icon_color(&self, config: &IconColorConfig) -> Color
pub fn get_file_type(&self) -> FileType
pub fn format_permissions(&self) -> String
pub fn format_size(&self) -> String
pub fn format_modified(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileEntry
impl RefUnwindSafe for FileEntry
impl Send for FileEntry
impl Sync for FileEntry
impl Unpin for FileEntry
impl UnwindSafe for FileEntry
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