pub trait DebugServerHandler<___T: Transport = Channel> {
// Required methods
fn connect_target(
&mut self,
request: Request<ConnectTarget, ___T>,
responder: Responder<ConnectTarget, ___T>,
) -> impl Future<Output = ()> + Send;
fn get_controller_properties(
&mut self,
responder: Responder<GetControllerProperties, ___T>,
) -> impl Future<Output = ()> + Send;
// Provided method
fn on_unknown_interaction(
&mut self,
ordinal: u64,
) -> impl Future<Output = ()> + Send { ... }
}Expand description
A server handler for the Debug protocol.
See [Debug] for more details.
Required Methods§
Sourcefn connect_target(
&mut self,
request: Request<ConnectTarget, ___T>,
responder: Responder<ConnectTarget, ___T>,
) -> impl Future<Output = ()> + Send
fn connect_target( &mut self, request: Request<ConnectTarget, ___T>, responder: Responder<ConnectTarget, ___T>, ) -> impl Future<Output = ()> + Send
Connects to the target device with the given ID. Equivalent to connecting to TargetService
via the corresponding driver node.
Returns INVALID_ARGS if target_id is greater than or equal to MAX_TARGETS.
May return an error if there is no such target on the bus; otherwise errors will be returned
when attempting to access the client.
Sourcefn get_controller_properties(
&mut self,
responder: Responder<GetControllerProperties, ___T>,
) -> impl Future<Output = ()> + Send
fn get_controller_properties( &mut self, responder: Responder<GetControllerProperties, ___T>, ) -> impl Future<Output = ()> + Send
Returns the properties of the host SPMI controller.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.