fidl_fuchsia_process

Trait LauncherProxyInterface

Source
pub trait LauncherProxyInterface: Send + Sync {
    type LaunchResponseFut: Future<Output = Result<(i32, Option<Process>), Error>> + Send;
    type CreateWithoutStartingResponseFut: Future<Output = Result<(i32, Option<Box<ProcessStartData>>), Error>> + Send;

    // Required methods
    fn launch(&self, info: LaunchInfo) -> Self::LaunchResponseFut;
    fn create_without_starting(
        &self,
        info: LaunchInfo,
    ) -> Self::CreateWithoutStartingResponseFut;
    fn add_args(&self, args: &[Vec<u8>]) -> Result<(), Error>;
    fn add_environs(&self, environ: &[Vec<u8>]) -> Result<(), Error>;
    fn add_names(&self, names: Vec<NameInfo>) -> Result<(), Error>;
    fn add_handles(&self, handles: Vec<HandleInfo>) -> Result<(), Error>;
    fn set_options(&self, options: u32) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

Source

fn launch(&self, info: LaunchInfo) -> Self::LaunchResponseFut

Source

fn create_without_starting( &self, info: LaunchInfo, ) -> Self::CreateWithoutStartingResponseFut

Source

fn add_args(&self, args: &[Vec<u8>]) -> Result<(), Error>

Source

fn add_environs(&self, environ: &[Vec<u8>]) -> Result<(), Error>

Source

fn add_names(&self, names: Vec<NameInfo>) -> Result<(), Error>

Source

fn add_handles(&self, handles: Vec<HandleInfo>) -> Result<(), Error>

Source

fn set_options(&self, options: u32) -> Result<(), Error>

Implementors§