fidl_fuchsia_hardware_network

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

Required Associated Types§

Required Methods§

Source

fn get_info(&self) -> Self::GetInfoResponseFut

Source

fn open_session( &self, session_name: &str, session_info: SessionInfo, ) -> Self::OpenSessionResponseFut

Source

fn get_port( &self, id: &PortId, port: ServerEnd<PortMarker>, ) -> Result<(), Error>

Source

fn get_port_watcher( &self, watcher: ServerEnd<PortWatcherMarker>, ) -> Result<(), Error>

Source

fn clone(&self, device: ServerEnd<DeviceMarker>) -> Result<(), Error>

Implementors§