Skip to main content

AsyncRawHttpExecutor

Trait AsyncRawHttpExecutor 

Source
pub trait AsyncRawHttpExecutor {
    type Error;

    // Required method
    fn execute<'executor, 'request, 'policy, 'writer>(
        &'executor self,
        request: TransportRequest<'request>,
        policy: RawResponsePolicy<'policy>,
        response: &'writer mut ResponseWriter<'_>,
    ) -> impl Future<Output = Result<(), Self::Error>> + Send + 'writer
       where 'executor: 'writer,
             'request: 'writer,
             'policy: 'writer;
}
Expand description

Runtime-neutral asynchronous raw HTTP execution.

Required Associated Types§

Source

type Error

Executor-specific phased failure.

Required Methods§

Source

fn execute<'executor, 'request, 'policy, 'writer>( &'executor self, request: TransportRequest<'request>, policy: RawResponsePolicy<'policy>, response: &'writer mut ResponseWriter<'_>, ) -> impl Future<Output = Result<(), Self::Error>> + Send + 'writer
where 'executor: 'writer, 'request: 'writer, 'policy: 'writer,

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, which clears state across future cancellation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§