Crate settings

Source

Re-exports§

pub use display::display_configuration::DisplayConfiguration;
pub use handler::setting_proxy_inspect_info::SettingProxyInspectInfo;
pub use input::input_device_configuration::InputConfiguration;
pub use light::light_hardware_configuration::LightHardwareConfiguration;

Modules§

agent
audio
base
Service-wide definitions.
config
display
handler
ingress
This mod defines the building blocks for receiving inbound communication from external interfaces, such as FIDL. It also includes common implementations for working with Jobs for incoming requests.
input
inspect
light
message
service_context
storage
This module contains types used for sending and receiving messages to and from the storage agent.
trace
This mod provides utilities for simplifying the collection of trace events.

Macros§

call
Helper macro to simplify calls to proxy objects.
call_async
Helper macro to simplify async calls to proxy objects.
create_agent
format_call
Helper macro to parse and stringify the arguments to call and call_async.
generate_inspect
This macro takes an enum, which has variants associated with various numbers of data, and generates the same enum and implements a for_inspect method. The for_inspect method returns variants’ names.
generate_inspect_with_info
This macro takes an enum, which has variants associated with exactly one data, and generates the same enum and implements a for_inspect method. The for_inspect method returns variants’ names and formated data contents.
payload_convert
The payload_convert macro helps convert between the domain-specific payloads (variants of Payload) and the Payload container(to/from) & MessageHub MessageEvent (from). The first matcher is the Payload variant name where the payload type can be found. Note that this is the direct variant name and not fully qualified. The second matcher is the domain-specific payload type.
trace
This macro simplifies collecting async trace events. It uses “setui” as the category name.
trace_guard
This macro simplifies collecting async trace events. It returns a guard that can be used to control the scope of the tracing event. It uses “setui” as the category name.

Structs§

AgentConfiguration
EnabledInterfacesConfiguration
EnvironmentBuilder
The EnvironmentBuilder aggregates the parameters surrounding an environment and ultimately spawns an environment based on them.
ServiceConfiguration
ServiceFlags

Enums§

Address
The Address enumeration defines a namespace for entities that can be reached by a predefined name. Care should be taken when adding new child namespaces here. Each address can only belong to a single entity. Most communication can be instead facilitated with a messenger’s signature, which is available at messenger creation time.
Payload
The types of data that can be sent through the service MessageHub. This enumeration is meant to provide a top level definition. Further definitions for particular domains should be located in the appropriate mod.

Type Aliases§

ExitSender
A common trigger for exiting.