Enum fidl_fuchsia_io::Representation
source · pub enum Representation {
Connector(ConnectorInfo),
Directory(DirectoryInfo),
File(FileInfo),
Symlink(SymlinkInfo),
// some variants omitted
}
Variants§
Connector(ConnectorInfo)
Auxiliary data for the connector representation of a node, used for protocol discovery and connection.
It supports connecting to arbitrary protocols exported by the
filesystem server at a path, including ones that do not compose
[Node2
].
See [NodeProtocolKinds.CONNECTOR
].
Directory(DirectoryInfo)
Auxiliary data for the directory representation of a node. The
selection of this variant in Representation
implies that the
connection speaks the [Directory
] protocol.
See [NodeProtocolKinds.DIRECTORY
].
File(FileInfo)
Auxiliary data for the file representation of a node. The
selection of this variant in Representation
implies that the
connection speaks the [File
] protocol.
See [NodeProtocolKinds.FILE
].
Symlink(SymlinkInfo)
Auxilliary data for the symlink representation of a node. The
selection of this variant in Representation
implies that the
connection speaks the [Symlink
] protocol.
See [NodeProtocolKinds.SYMLINK
].
Implementations§
source§impl Representation
impl Representation
pub fn ordinal(&self) -> u64
pub fn unknown_variant_for_testing() -> Self
pub fn is_unknown(&self) -> bool
Trait Implementations§
source§impl Debug for Representation
impl Debug for Representation
source§impl Decode<Representation> for Representation
impl Decode<Representation> for Representation
source§impl Encode<Representation> for &mut Representation
impl Encode<Representation> for &mut Representation
source§impl PartialEq for Representation
impl PartialEq for Representation
source§impl ResourceTypeMarker for Representation
impl ResourceTypeMarker for Representation
§type Borrowed<'a> = &'a mut Representation
type Borrowed<'a> = &'a mut Representation
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moresource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).source§impl TypeMarker for Representation
impl TypeMarker for Representation
§type Owned = Representation
type Owned = Representation
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.