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, DefaultFuchsiaResourceDialect> for Representation
impl Decode<Representation, DefaultFuchsiaResourceDialect> for Representation
Source§impl Encode<Representation, DefaultFuchsiaResourceDialect> for &mut Representation
impl Encode<Representation, DefaultFuchsiaResourceDialect> for &mut Representation
Source§impl PartialEq for Representation
impl PartialEq for Representation
Source§impl ResourceTypeMarker for Representation
impl ResourceTypeMarker for Representation
Source§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
Source§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.