pub trait DeviceLocalServerHandler<___T: Transport = DriverChannel> {
// Required methods
fn get_hardware_id(
&mut self,
responder: Responder<GetHardwareId, ___T>,
) -> impl Future<Output = ()>;
fn get_event(
&mut self,
responder: Responder<GetEvent, ___T>,
) -> impl Future<Output = ()>;
}Expand description
A server handler for the Device protocol.
See Device for more details.
Required Methods§
Sourcefn get_hardware_id(
&mut self,
responder: Responder<GetHardwareId, ___T>,
) -> impl Future<Output = ()>
fn get_hardware_id( &mut self, responder: Responder<GetHardwareId, ___T>, ) -> impl Future<Output = ()>
Returns a unique identifier for this device.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".