Struct openssh_sftp_client::metadata::FileType
source · pub struct FileType(/* private fields */);
Expand description
A structure representing a type of file with accessors for each file type.
It is returned by MetaData::file_type
method.
Implementations§
source§impl FileType
impl FileType
sourcepub fn is_symlink(&self) -> bool
pub fn is_symlink(&self) -> bool
Tests whether this file type represents a symbolic link.
sourcepub fn is_block_device(&self) -> bool
pub fn is_block_device(&self) -> bool
Tests whether this file type represents a block device.
sourcepub fn is_char_device(&self) -> bool
pub fn is_char_device(&self) -> bool
Tests whether this file type represents a character device.
Trait Implementations§
source§impl PartialEq for FileType
impl PartialEq for FileType
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