pub trait BlockingRawHttpExecutor {
type Error;
// Required method
fn execute(
&self,
request: TransportRequest<'_>,
policy: RawResponsePolicy<'_>,
response: &mut ResponseWriter<'_>,
) -> Result<(), Self::Error>;
}Expand description
Blocking execution of one already validated raw HTTP request.
Required Associated Types§
Required Methods§
Sourcefn execute(
&self,
request: TransportRequest<'_>,
policy: RawResponsePolicy<'_>,
response: &mut ResponseWriter<'_>,
) -> Result<(), Self::Error>
fn execute( &self, request: TransportRequest<'_>, policy: RawResponsePolicy<'_>, response: &mut ResponseWriter<'_>, ) -> Result<(), Self::Error>
Executes exactly once without implicit authentication or retries.
Implementations must use ResponseWriter::begin_attempt. Response
mutation and commitment are available only through the returned guard.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".