fidl_fuchsia_netemul

Trait ManagedRealmProxyInterface

Source
pub trait ManagedRealmProxyInterface: Send + Sync {
    type GetMonikerResponseFut: Future<Output = Result<String, Error>> + Send;
    type AddDeviceResponseFut: Future<Output = Result<ManagedRealmAddDeviceResult, Error>> + Send;
    type RemoveDeviceResponseFut: Future<Output = Result<ManagedRealmRemoveDeviceResult, Error>> + Send;
    type StartChildComponentResponseFut: Future<Output = Result<ManagedRealmStartChildComponentResult, Error>> + Send;
    type StopChildComponentResponseFut: Future<Output = Result<ManagedRealmStopChildComponentResult, Error>> + Send;

    // Required methods
    fn get_moniker(&self) -> Self::GetMonikerResponseFut;
    fn connect_to_protocol(
        &self,
        protocol_name: &str,
        child_name: Option<&str>,
        req: Channel,
    ) -> Result<(), Error>;
    fn add_device(
        &self,
        path: &str,
        device: ClientEnd<DeviceProxy_Marker>,
    ) -> Self::AddDeviceResponseFut;
    fn remove_device(&self, path: &str) -> Self::RemoveDeviceResponseFut;
    fn get_devfs(&self, devfs: ServerEnd<DirectoryMarker>) -> Result<(), Error>;
    fn start_child_component(
        &self,
        child_name: &str,
    ) -> Self::StartChildComponentResponseFut;
    fn stop_child_component(
        &self,
        child_name: &str,
    ) -> Self::StopChildComponentResponseFut;
    fn shutdown(&self) -> Result<(), Error>;
    fn open_diagnostics_directory(
        &self,
        child_name: &str,
        directory: ServerEnd<DirectoryMarker>,
    ) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

Source

fn get_moniker(&self) -> Self::GetMonikerResponseFut

Source

fn connect_to_protocol( &self, protocol_name: &str, child_name: Option<&str>, req: Channel, ) -> Result<(), Error>

Source

fn add_device( &self, path: &str, device: ClientEnd<DeviceProxy_Marker>, ) -> Self::AddDeviceResponseFut

Source

fn remove_device(&self, path: &str) -> Self::RemoveDeviceResponseFut

Source

fn get_devfs(&self, devfs: ServerEnd<DirectoryMarker>) -> Result<(), Error>

Source

fn start_child_component( &self, child_name: &str, ) -> Self::StartChildComponentResponseFut

Source

fn stop_child_component( &self, child_name: &str, ) -> Self::StopChildComponentResponseFut

Source

fn shutdown(&self) -> Result<(), Error>

Source

fn open_diagnostics_directory( &self, child_name: &str, directory: ServerEnd<DirectoryMarker>, ) -> Result<(), Error>

Implementors§