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 connect_to_service(
&self,
service_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>;
fn get_crash_listener(
&self,
listener: ServerEnd<CrashListenerMarker>,
) -> Result<(), Error>;
}Required Associated Types§
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 connect_to_service( &self, service_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>
fn get_crash_listener( &self, listener: ServerEnd<CrashListenerMarker>, ) -> Result<(), Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".