pub enum FileType {
Dir,
File,
Symlink,
Other,
}
Expand description
Represents the type associated with a remote file
Variants§
Implementations§
Source§impl FileType
impl FileType
Sourcepub fn is_symlink(self) -> bool
pub fn is_symlink(self) -> bool
Returns true if file is a type of symlink
Sourcepub fn from_unix_mode(mode: u32) -> Self
pub fn from_unix_mode(mode: u32) -> Self
Create from a unix mode bitset
Sourcepub fn to_unix_mode(self) -> u32
pub fn to_unix_mode(self) -> u32
Convert to a unix mode bitset
Trait Implementations§
Source§impl From<FileType> for FileType
impl From<FileType> for FileType
Source§fn from(ft: Ssh2FileType) -> Self
fn from(ft: Ssh2FileType) -> Self
Converts to this type from the input type.
impl Copy for FileType
impl Eq for FileType
impl StructuralPartialEq for FileType
Auto Trait Implementations§
impl Freeze for FileType
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnwindSafe for FileType
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