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§

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.
LEASE_TOKEN_RIGHTS
A token that represents an open lease. The client’s handle should be dropped to indicate the lease should be closed. This handle may be duplicated if the lease will be shared; the lease will remain open until the last handle is dropped.
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.
ElementRunnerLocalClientHandler
A client handler for the ElementRunner protocol.
ElementRunnerLocalServerHandler
A server handler for the ElementRunner protocol.
ElementRunnerServerHandler
A server handler for the ElementRunner protocol.
LeaseControlClientHandler
A client handler for the LeaseControl protocol.
LeaseControlLocalClientHandler
A client handler for the LeaseControl protocol.
LeaseControlLocalServerHandler
A server handler for the LeaseControl protocol.
LeaseControlServerHandler
A server handler for the LeaseControl protocol.