pub trait ClientOperation: PrepareOperation {
type Output;
type DecodeError;
// Required method
fn decode_response(
&self,
response: ClientResponse<'_, '_>,
) -> Result<Self::Output, Self::DecodeError>;
}Expand description
Typed provider operation executable by ClientKernel.
Preparation binds method, target, authentication, endpoint, response, and
safety policy. Decoding must consume ClientResponse through its checked
success or error path and return an owned value.
Required Associated Types§
Sourcetype DecodeError
type DecodeError
Provider-specific checked-decoding failure.
Required Methods§
Sourcefn decode_response(
&self,
response: ClientResponse<'_, '_>,
) -> Result<Self::Output, Self::DecodeError>
fn decode_response( &self, response: ClientResponse<'_, '_>, ) -> Result<Self::Output, Self::DecodeError>
Decodes one bounded, authenticated, send-once response.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".