fidl_fuchsia_session

Trait LifecycleProxyInterface

Source
pub trait LifecycleProxyInterface: Send + Sync {
    type StartResponseFut: Future<Output = Result<LifecycleStartResult, Error>> + Send;
    type StopResponseFut: Future<Output = Result<LifecycleStopResult, Error>> + Send;
    type RestartResponseFut: Future<Output = Result<LifecycleRestartResult, Error>> + Send;

    // Required methods
    fn start(&self, payload: &LifecycleStartRequest) -> Self::StartResponseFut;
    fn stop(&self) -> Self::StopResponseFut;
    fn restart(&self) -> Self::RestartResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn start(&self, payload: &LifecycleStartRequest) -> Self::StartResponseFut

Source

fn stop(&self) -> Self::StopResponseFut

Source

fn restart(&self) -> Self::RestartResponseFut

Implementors§