fidl_fuchsia_hardware_networkTrait DeviceProxyInterface
Source pub trait DeviceProxyInterface: Send + Sync {
type GetInfoResponseFut: Future<Output = Result<DeviceInfo, Error>> + Send;
type OpenSessionResponseFut: Future<Output = Result<DeviceOpenSessionResult, Error>> + Send;
// Required methods
fn get_info(&self) -> Self::GetInfoResponseFut;
fn open_session(
&self,
session_name: &str,
session_info: SessionInfo,
) -> Self::OpenSessionResponseFut;
fn get_port(
&self,
id: &PortId,
port: ServerEnd<PortMarker>,
) -> Result<(), Error>;
fn get_port_watcher(
&self,
watcher: ServerEnd<PortWatcherMarker>,
) -> Result<(), Error>;
fn clone(&self, device: ServerEnd<DeviceMarker>) -> Result<(), Error>;
}