Skip to main content

Crate fidl_next_common_fuchsia_power_broker

Crate fidl_next_common_fuchsia_power_broker 

Source

Re-exports§

pub use self::natural::*;

Modules§

compat
Compatibility shims which mimic some API surfaces of the current Rust bindings.
element_runner
generic
lease_control
natural
wire
wire_optional

Structs§

ElementRunner
The type corresponding to the ElementRunner protocol. The runner or operator of an element. This should be implemented by all element owners. The client end is passed to Power Broker via ElementSchema.element_runner. Power Broker calls SetLevel initially, and then whenever the required level of the element changes.
LeaseControl
The type corresponding to the LeaseControl protocol. Provides lease-scoped access to actions that can be taken on a lease previously acquired via Lessor.Lease. Closing this control channel drops the lease. TODO(https://fxbug.dev/339474151): Switch from a protocol to an eventpair.

Constants§

LEASE_SIGNAL_SATISFIED
Signal sent by Power Broker on the LeaseToken when the lease is satisfied.
MAX_DEPENDENCIES_IN_ADD_ELEMENT
MAX_ELEMENT_NAME_LEN
MAX_LEVEL_NAME_LEN
PowerLevel name lengths are limited to reduce Inspect space usage
MAX_TOKENS_IN_ADD_ELEMENT
MAX_VALID_POWER_LEVELS

Traits§

ElementRunnerClientHandler
A client handler for the ElementRunner protocol.
ElementRunnerServerHandler
A server handler for the ElementRunner protocol.
LeaseControlClientHandler
A client handler for the LeaseControl protocol.
LeaseControlServerHandler
A server handler for the LeaseControl protocol.