pub trait DeviceServerHandler<___T = DriverChannel>where
___T: Transport,{
// Required methods
fn get_resolution(
&mut self,
responder: Responder<GetResolution, ___T>,
) -> impl Future<Output = ()> + Send;
fn get_sample(
&mut self,
request: Request<GetSample, ___T>,
responder: Responder<GetSample, ___T>,
) -> impl Future<Output = ()> + Send;
}Expand description
A server handler for the Device protocol.
See Device for more details.
Required Methods§
Sourcefn get_resolution(
&mut self,
responder: Responder<GetResolution, ___T>,
) -> impl Future<Output = ()> + Send
fn get_resolution( &mut self, responder: Responder<GetResolution, ___T>, ) -> impl Future<Output = ()> + Send
Get adc resolution in number of bits.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".