pub trait DriverHostControllerProxyInterface: Send + Sync {
    type CreateDeviceResponseFut: Future<Output = Result<i32, Error>> + Send;
    type RestartResponseFut: Future<Output = Result<i32, Error>> + Send;

    // Required methods
    fn create_device(
        &self,
        coordinator: ClientEnd<CoordinatorMarker>,
        device_controller: ServerEnd<DeviceControllerMarker>,
        type_: &mut DeviceType,
        local_device_id: u64
    ) -> Self::CreateDeviceResponseFut;
    fn start(
        &self,
        start_args: DriverStartArgs,
        driver: ServerEnd<DriverMarker>
    ) -> Result<(), Error>;
    fn restart(&self) -> Self::RestartResponseFut;
}

Required Associated Types§

Required Methods§

source

fn create_device( &self, coordinator: ClientEnd<CoordinatorMarker>, device_controller: ServerEnd<DeviceControllerMarker>, type_: &mut DeviceType, local_device_id: u64 ) -> Self::CreateDeviceResponseFut

source

fn start( &self, start_args: DriverStartArgs, driver: ServerEnd<DriverMarker> ) -> Result<(), Error>

source

fn restart(&self) -> Self::RestartResponseFut

Implementors§