pub trait CheckedControlRequest: Request<ControlProtocol, Error = ControlClientError> {
// Required methods
fn json_request(&self) -> ControlClientResult<ControlRequest>;
fn decode_json(
&self,
reply: JsonReply,
) -> ControlClientResult<Self::Response>;
}Expand description
Checked control requests sharing operation records across both formats.
Required Methods§
Sourcefn json_request(&self) -> ControlClientResult<ControlRequest>
fn json_request(&self) -> ControlClientResult<ControlRequest>
Prepare the actual legacy operation, before any connection or write.
Sourcefn decode_json(&self, reply: JsonReply) -> ControlClientResult<Self::Response>
fn decode_json(&self, reply: JsonReply) -> ControlClientResult<Self::Response>
Normalize a real JSON response, preserving its original bytes on failure.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".