Skip to main content

ClientOperation

Trait ClientOperation 

Source
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§

Source

type Output

Owned operation result.

Source

type DecodeError

Provider-specific checked-decoding failure.

Required Methods§

Source

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".

Implementors§