pub trait StsHandler:
Send
+ Sync
+ 'static {
// Required method
fn handle_operation(
&self,
op: StsOperation,
body: Bytes,
caller_access_key: Option<String>,
request_id: &str,
) -> Pin<Box<dyn Future<Output = Result<Response<StsResponseBody>, StsError>> + Send>>;
}Expand description
Trait that the STS business logic provider must implement.
The handler receives a parsed operation enum, the raw form body bytes, and the caller’s access key extracted from the SigV4 Authorization header.
Required Methods§
Sourcefn handle_operation(
&self,
op: StsOperation,
body: Bytes,
caller_access_key: Option<String>,
request_id: &str,
) -> Pin<Box<dyn Future<Output = Result<Response<StsResponseBody>, StsError>> + Send>>
fn handle_operation( &self, op: StsOperation, body: Bytes, caller_access_key: Option<String>, request_id: &str, ) -> Pin<Box<dyn Future<Output = Result<Response<StsResponseBody>, StsError>> + Send>>
Handle an STS operation and produce an HTTP response.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".