#[repr(u8)]pub enum DirentType {
Unknown = 0,
Directory = 4,
BlockDevice = 6,
File = 8,
Symlink = 10,
Service = 16,
UnknownOrdinal_(u8),
}
Variants§
Trait Implementations§
Source§impl Clone for DirentType
impl Clone for DirentType
Source§fn clone(&self) -> DirentType
fn clone(&self) -> DirentType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DirentType
impl Debug for DirentType
Source§impl Encodable for DirentType
impl Encodable for DirentType
Source§type Encoded = WireDirentType
type Encoded = WireDirentType
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl<___E> Encode<___E> for DirentTypewhere
___E: ?Sized,
impl<___E> Encode<___E> for DirentTypewhere
___E: ?Sized,
Source§impl From<DirentType> for WireDirentType
impl From<DirentType> for WireDirentType
Source§fn from(natural: DirentType) -> Self
fn from(natural: DirentType) -> Self
Converts to this type from the input type.
Source§impl From<WireDirentType> for DirentType
impl From<WireDirentType> for DirentType
Source§fn from(wire: WireDirentType) -> Self
fn from(wire: WireDirentType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DirentType
impl PartialEq for DirentType
Source§impl TakeFrom<WireDirentType> for DirentType
impl TakeFrom<WireDirentType> for DirentType
Source§fn take_from(from: &WireDirentType) -> Self
fn take_from(from: &WireDirentType) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreimpl Copy for DirentType
impl Eq for DirentType
impl StructuralPartialEq for DirentType
Auto Trait Implementations§
impl Freeze for DirentType
impl RefUnwindSafe for DirentType
impl Send for DirentType
impl Sync for DirentType
impl Unpin for DirentType
impl UnwindSafe for DirentType
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