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§
- Element
Runner - 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.
- Lease
Control - 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§
- Element
Runner Client Handler - A client handler for the ElementRunner protocol.
- Element
Runner Server Handler - A server handler for the ElementRunner protocol.
- Lease
Control Client Handler - A client handler for the LeaseControl protocol.
- Lease
Control Server Handler - A server handler for the LeaseControl protocol.