fidl_fuchsia_power_system

Trait ActivityGovernorProxyInterface

Source
pub trait ActivityGovernorProxyInterface: Send + Sync {
    type GetPowerElementsResponseFut: Future<Output = Result<PowerElements, Error>> + Send;
    type TakeWakeLeaseResponseFut: Future<Output = Result<EventPair, Error>> + Send;
    type AcquireWakeLeaseResponseFut: Future<Output = Result<ActivityGovernorAcquireWakeLeaseResult, Error>> + Send;
    type TakeApplicationActivityLeaseResponseFut: Future<Output = Result<EventPair, Error>> + Send;
    type RegisterListenerResponseFut: Future<Output = Result<(), Error>> + Send;

    // Required methods
    fn get_power_elements(&self) -> Self::GetPowerElementsResponseFut;
    fn take_wake_lease(&self, name: &str) -> Self::TakeWakeLeaseResponseFut;
    fn acquire_wake_lease(
        &self,
        name: &str,
    ) -> Self::AcquireWakeLeaseResponseFut;
    fn take_application_activity_lease(
        &self,
        name: &str,
    ) -> Self::TakeApplicationActivityLeaseResponseFut;
    fn register_listener(
        &self,
        payload: ActivityGovernorRegisterListenerRequest,
    ) -> Self::RegisterListenerResponseFut;
}

Required Associated Types§

Required Methods§

Implementors§