pub trait CloneInput<S>:
Sealed<(S,)>
+ Send
+ Sync
+ 'static {
// Required method
fn clone_input(
&self,
ctx: &Context<S>,
req: &Request<RetryBody>,
) -> Option<(Context<S>, Request<RetryBody>)>;
}
Expand description
A trait that is used to umbrella-cover all possible implementation kinds for the cloning functionality.
Required Methods§
fn clone_input(
&self,
ctx: &Context<S>,
req: &Request<RetryBody>,
) -> Option<(Context<S>, Request<RetryBody>)>
fn clone_input( &self, ctx: &Context<S>, req: &Request<RetryBody>, ) -> Option<(Context<S>, Request<RetryBody>)>
Clone the input request if necessary.
See Policy::clone_input
for more details.