pub struct DevfsAddArgs {
pub connector: Option<ClientEnd<ConnectorMarker>>,
pub class_name: Option<String>,
pub inspect: Option<Vmo>,
pub connector_supports: Option<ConnectionType>,
pub controller_connector: Option<ClientEnd<ConnectorMarker>>,
/* private fields */
}
Fields§
§connector: Option<ClientEnd<ConnectorMarker>>
This is the connector to be installed in devfs.
Connect()
will be called when a client connects to this node in the filesystem.
Optional: If this is not provided then an empty node will appear in devfs.
class_name: Option<String>
This is the class name for installing this node in devfs.
The node will be placed within /dev/class/{class_name}.
If class_name
does not exist under /dev/class/ it will be created.
Optional: If this is not provided then the node will only be added via topological path.
inspect: Option<Vmo>
This is a vmo of inspect data that will be installed in devfs. Optional: If this is not provided then the devfs’s inspect data will be empty.
connector_supports: Option<ConnectionType>
The connection types that are supported by the |connector| given. The driver framework should handle connection types that are not supported by the connector. If not provided, only the device type is assumed as supported by the connector.
controller_connector: Option<ClientEnd<ConnectorMarker>>
This is the controller connector to be installed in devfs.
Connect()
will be called when a client connects to the device_controller connection
for this node in the filesystem.
Optional: If this is not provided then the Node will handle the connection natively.
This option should only be used by the compat shim or in tests
Trait Implementations§
Source§impl Debug for DevfsAddArgs
impl Debug for DevfsAddArgs
Source§impl Decode<DevfsAddArgs, DefaultFuchsiaResourceDialect> for DevfsAddArgs
impl Decode<DevfsAddArgs, DefaultFuchsiaResourceDialect> for DevfsAddArgs
Source§impl Default for DevfsAddArgs
impl Default for DevfsAddArgs
Source§fn default() -> DevfsAddArgs
fn default() -> DevfsAddArgs
Source§impl Encode<DevfsAddArgs, DefaultFuchsiaResourceDialect> for &mut DevfsAddArgs
impl Encode<DevfsAddArgs, DefaultFuchsiaResourceDialect> for &mut DevfsAddArgs
Source§impl PartialEq for DevfsAddArgs
impl PartialEq for DevfsAddArgs
Source§impl ResourceTypeMarker for DevfsAddArgs
impl ResourceTypeMarker for DevfsAddArgs
Source§type Borrowed<'a> = &'a mut DevfsAddArgs
type Borrowed<'a> = &'a mut DevfsAddArgs
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 DevfsAddArgs
impl TypeMarker for DevfsAddArgs
Source§type Owned = DevfsAddArgs
type Owned = DevfsAddArgs
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.