pub trait DeviceServerHandler<___T = Channel>where
___T: Transport,{
// Required methods
fn get_class(
&mut self,
responder: Responder<GetClass, ___T>,
) -> impl Future<Output = ()> + Send;
fn set_config(
&mut self,
request: Request<SetConfig, ___T>,
responder: Responder<SetConfig, ___T>,
) -> impl Future<Output = ()> + Send;
fn read(
&mut self,
responder: Responder<Read, ___T>,
) -> impl Future<Output = ()> + Send;
fn write(
&mut self,
request: Request<Write, ___T>,
responder: Responder<Write, ___T>,
) -> impl Future<Output = ()> + Send;
}Expand description
A server handler for the Device protocol.
See Device for more details.
Required Methods§
Sourcefn get_class(
&mut self,
responder: Responder<GetClass, ___T>,
) -> impl Future<Output = ()> + Send
fn get_class( &mut self, responder: Responder<GetClass, ___T>, ) -> impl Future<Output = ()> + Send
Lookup what type of serial device this is.
Sourcefn set_config(
&mut self,
request: Request<SetConfig, ___T>,
responder: Responder<SetConfig, ___T>,
) -> impl Future<Output = ()> + Send
fn set_config( &mut self, request: Request<SetConfig, ___T>, responder: Responder<SetConfig, ___T>, ) -> impl Future<Output = ()> + Send
Set the configuration of this serial device.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".