pub struct DriverStartArgs {
pub node: Option<ClientEnd<NodeMarker>>,
pub symbols: Option<Vec<NodeSymbol>>,
pub url: Option<String>,
pub program: Option<Dictionary>,
pub incoming: Option<Vec<ComponentNamespaceEntry>>,
pub outgoing_dir: Option<ServerEnd<DirectoryMarker>>,
pub config: Option<Vmo>,
pub node_name: Option<String>,
/* private fields */
}
Expand description
Arguments for starting a driver.
Fields§
§node: Option<ClientEnd<NodeMarker>>
Node that the driver is bound to.
symbols: Option<Vec<NodeSymbol>>
Symbols provided to the driver, for |node|. These come from the driver that added |node|, and are filtered to the symbols requested in the bind program.
url: Option<String>
URL of the package containing the driver. This is purely informational, used only to provide data for inspect.
program: Option<Dictionary>
Information about the driver to start. Currently, we support the following entries:
- “binary”: a string containing the package-relative path to the driver binary.
- “colocate” (optional): a string containing “true” or “false” specifying whether the driver should be colocated in the same driver host as the driver that added |node|. If not specified, the driver will be launched in a new driver host.
- “default_dispatcher_opts” (optional): an array of strings specifying
the options for creating the default dispatcher. A string can be one
of the following:
allow_sync_calls
: allows synchronous calls to be done on the default dispatcher’s thread.
incoming: Option<Vec<ComponentNamespaceEntry>>
Incoming namespace provided to the driver.
outgoing_dir: Option<ServerEnd<DirectoryMarker>>
Outgoing directory served by the driver.
config: Option<Vmo>
Configuration passed to the driver.
node_name: Option<String>
The name of the node the driver is bound to.
Implementations§
Trait Implementations§
source§impl Debug for DriverStartArgs
impl Debug for DriverStartArgs
source§impl Decode<DriverStartArgs> for DriverStartArgs
impl Decode<DriverStartArgs> for DriverStartArgs
source§impl Encode<DriverStartArgs> for &mut DriverStartArgs
impl Encode<DriverStartArgs> for &mut DriverStartArgs
source§impl Encode<DriverStartArgs> for DriverStartArgs
impl Encode<DriverStartArgs> for DriverStartArgs
source§impl PartialEq<DriverStartArgs> for DriverStartArgs
impl PartialEq<DriverStartArgs> for DriverStartArgs
source§fn eq(&self, other: &DriverStartArgs) -> bool
fn eq(&self, other: &DriverStartArgs) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ResourceTypeMarker for DriverStartArgs
impl ResourceTypeMarker for DriverStartArgs
§type Borrowed<'a> = &'a mut DriverStartArgs
type Borrowed<'a> = &'a mut DriverStartArgs
The Rust type to use for encoding. This is a particular
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>
Cheaply converts from
&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 DriverStartArgs
impl TypeMarker for DriverStartArgs
§type Owned = DriverStartArgs
type Owned = DriverStartArgs
The owned Rust type which this FIDL type decodes into.
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
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
Returns true if the memory layout of
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.