[−][src]Enum termscp::fs::FsEntry
FsEntry
FsEntry represents a generic entry in a directory
Variants
Directory(FsDirectory)
File(FsFile)
Implementations
impl FsEntry
[src]
pub fn get_abs_path(&self) -> PathBuf
[src]
get_abs_path
Get absolute path from FsEntry
pub fn get_name(&self) -> &str
[src]
get_name
Get file name from FsEntry
pub fn get_last_change_time(&self) -> SystemTime
[src]
get_last_change_time
Get last change time from FsEntry
pub fn get_last_access_time(&self) -> SystemTime
[src]
get_last_access_time
Get access time from FsEntry
pub fn get_creation_time(&self) -> SystemTime
[src]
get_creation_time
Get creation time from FsEntry
pub fn get_size(&self) -> usize
[src]
get_size
Get size from FsEntry
. For directories is always 4096
pub fn get_ftype(&self) -> Option<String>
[src]
get_ftype
Get file type from FsEntry
. For directories is always None
pub fn get_user(&self) -> Option<u32>
[src]
get_user
Get uid from FsEntry
pub fn get_group(&self) -> Option<u32>
[src]
get_group
Get gid from FsEntry
pub fn get_unix_pex(&self) -> Option<(u8, u8, u8)>
[src]
get_unix_pex
Get unix pex from FsEntry
pub fn is_symlink(&self) -> bool
[src]
is_symlink
Returns whether the FsEntry
is a symlink
pub fn is_dir(&self) -> bool
[src]
is_dir
Returns whether a FsEntry is a directory
pub fn is_file(&self) -> bool
[src]
is_file
Returns whether a FsEntry is a File
pub fn is_hidden(&self) -> bool
[src]
is_hidden
Returns whether FsEntry is hidden
pub fn get_realfile(&self) -> FsEntry
[src]
get_realfile
Return the real file pointed by a FsEntry
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FsEntry
[src]
impl Send for FsEntry
[src]
impl Sync for FsEntry
[src]
impl Unpin for FsEntry
[src]
impl UnwindSafe for FsEntry
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,