Re-exports§
pub use self::natural::*;
Modules§
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.
- 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§
- Element
Runner Client Handler - A client handler for the ElementRunner protocol.
- Element
Runner Local Client Handler - A client handler for the ElementRunner protocol.
- Element
Runner Local Server Handler - A server 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 Local Client Handler - A client handler for the LeaseControl protocol.
- Lease
Control Local Server Handler - A server handler for the LeaseControl protocol.
- Lease
Control Server Handler - A server handler for the LeaseControl protocol.