pub trait InterimHandler: Send {
type Error: Error + Send + Sync + 'static;
// Required method
fn on_interim_response(
&mut self,
response: ResponseMetadata,
cancellation: &Cancellation,
) -> impl Future<Output = Result<(), Self::Error>> + Send;
}Expand description
A protocol writer or client observer for an interim response head.
Required Associated Types§
Required Methods§
fn on_interim_response( &mut self, response: ResponseMetadata, cancellation: &Cancellation, ) -> impl Future<Output = Result<(), Self::Error>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".