fidl_fuchsia_power_broker

Trait ElementControlProxyInterface

Source
pub trait ElementControlProxyInterface: Send + Sync {
    type RegisterDependencyTokenResponseFut: Future<Output = Result<ElementControlRegisterDependencyTokenResult, Error>> + Send;
    type UnregisterDependencyTokenResponseFut: Future<Output = Result<ElementControlUnregisterDependencyTokenResult, Error>> + Send;

    // Required methods
    fn open_status_channel(
        &self,
        status_channel: ServerEnd<StatusMarker>,
    ) -> Result<(), Error>;
    fn register_dependency_token(
        &self,
        token: Event,
        dependency_type: DependencyType,
    ) -> Self::RegisterDependencyTokenResponseFut;
    fn unregister_dependency_token(
        &self,
        token: Event,
    ) -> Self::UnregisterDependencyTokenResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn open_status_channel( &self, status_channel: ServerEnd<StatusMarker>, ) -> Result<(), Error>

Source

fn register_dependency_token( &self, token: Event, dependency_type: DependencyType, ) -> Self::RegisterDependencyTokenResponseFut

Source

fn unregister_dependency_token( &self, token: Event, ) -> Self::UnregisterDependencyTokenResponseFut

Implementors§