pub enum Representation {
Node(NodeInfo),
Directory(DirectoryInfo),
File(FileInfo),
Symlink(SymlinkInfo),
UnknownOrdinal_(u64),
}
Variants§
Trait Implementations§
Source§impl Debug for Representation
impl Debug for Representation
Source§impl Encodable for Representation
impl Encodable for Representation
Source§type Encoded = WireRepresentation
type Encoded = WireRepresentation
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 EncodableOption for Box<Representation>
impl EncodableOption for Box<Representation>
Source§type EncodedOption = WireOptionalRepresentation
type EncodedOption = WireOptionalRepresentation
The wire type for the optional value.
Source§impl<___E> Encode<___E> for Representationwhere
___E: InternalHandleEncoder + ?Sized + Encoder + HandleEncoder,
impl<___E> Encode<___E> for Representationwhere
___E: InternalHandleEncoder + ?Sized + Encoder + HandleEncoder,
Source§impl<___E> EncodeOption<___E> for Box<Representation>where
___E: ?Sized,
Representation: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<Representation>where
___E: ?Sized,
Representation: Encode<___E>,
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl TakeFrom<WireRepresentation> for Representation
impl TakeFrom<WireRepresentation> for Representation
Source§fn take_from(from: &WireRepresentation) -> Self
fn take_from(from: &WireRepresentation) -> 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 moreAuto Trait Implementations§
impl Freeze for Representation
impl RefUnwindSafe for Representation
impl Send for Representation
impl Sync for Representation
impl Unpin for Representation
impl UnwindSafe for Representation
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