fidl_fuchsia_netemulTrait 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>;
}