pub enum FsFileType {
RegularFile,
Directory,
Symlink,
CharDevice,
BlockDevice,
Fifo,
Socket,
Unknown,
}Expand description
Filesystem-agnostic file type.
Variants§
Trait Implementations§
Source§impl Clone for FsFileType
impl Clone for FsFileType
Source§fn clone(&self) -> FsFileType
fn clone(&self) -> FsFileType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FsFileType
Source§impl Debug for FsFileType
impl Debug for FsFileType
Source§impl<'de> Deserialize<'de> for FsFileType
impl<'de> Deserialize<'de> for FsFileType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FsFileType
Source§impl PartialEq for FsFileType
impl PartialEq for FsFileType
Source§fn eq(&self, other: &FsFileType) -> bool
fn eq(&self, other: &FsFileType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FsFileType
impl Serialize for FsFileType
impl StructuralPartialEq for FsFileType
Auto Trait Implementations§
impl Freeze for FsFileType
impl RefUnwindSafe for FsFileType
impl Send for FsFileType
impl Sync for FsFileType
impl Unpin for FsFileType
impl UnsafeUnpin for FsFileType
impl UnwindSafe for FsFileType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more