Crate runner

Source

Modules§

component
serde

Structs§

StartInfo
StartInfo is convertible from the FIDL fcrunner::ComponentStartInfo type and performs validation that makes sense for all runners in the process.

Enums§

ConfigDataError
Errors from parsing a component’s configuration data.
StartInfoError
Errors from parsing ComponentStartInfo.
StartInfoProgramError
An error encountered trying to get entry out of ComponentStartInfo->program.

Functions§

get_bool
Retrieve value of type bool. Defaults to ‘false’ if key is not found.
get_config_vmo
get_enum
Retrieve a reference to the enum value corresponding to the key.
get_environ
get_program_args
Retrieves program.args from ComponentStartInfo and validates them.
get_program_args_from_dict
Retrieves args from a ComponentStartInfo program dict and validates them.
get_program_binary
Retrieves program.binary from ComponentStartInfo and makes sure that path is relative.
get_program_binary_from_dict
Retrieves binary from a ComponentStartInfo dict and makes sure that path is relative.
get_program_string
Retrieve a string from the program dictionary in ComponentStartInfo.
get_program_strvec
Retrieve a StrVec from the program dictionary in ComponentStartInfo. Returns StartInfoProgramError::InvalidStrVec if the value is not a StrVec.
get_resolved_url
Retrieves component URL from start_info or errors out if not found.
get_value
Returns a reference to the value corresponding to the key.