Struct aws_sdk_s3::client::customize::Operation
source · pub struct Operation<H, R> { /* private fields */ }
Expand description
An Operation
is a request paired with a response handler, retry classifier,
and metadata that identifies the API being called.
Generics:
H
: Response handlerR
: Implementation ofClassifyRetry
Implementations§
source§impl<H, R> Operation<H, R>
impl<H, R> Operation<H, R>
sourcepub fn into_request_response(self) -> (Request, Parts<H, R>)
pub fn into_request_response(self) -> (Request, Parts<H, R>)
Converts this operation into its parts.
sourcepub fn from_parts(request: Request, parts: Parts<H, R>) -> Operation<H, R>
pub fn from_parts(request: Request, parts: Parts<H, R>) -> Operation<H, R>
sourcepub fn properties_mut(&mut self) -> impl DerefMut
pub fn properties_mut(&mut self) -> impl DerefMut
Returns a mutable reference to the request’s property bag.
sourcepub fn properties(&self) -> impl Deref<Target = PropertyBag>
pub fn properties(&self) -> impl Deref<Target = PropertyBag>
Returns an immutable reference to the request’s property bag.
sourcepub fn request_mut(&mut self) -> &mut Request<SdkBody>
pub fn request_mut(&mut self) -> &mut Request<SdkBody>
Gives mutable access to the underlying HTTP request.
sourcepub fn request(&self) -> &Request<SdkBody>
pub fn request(&self) -> &Request<SdkBody>
Gives readonly access to the underlying HTTP request.
sourcepub fn with_metadata(self, metadata: Metadata) -> Operation<H, R>
pub fn with_metadata(self, metadata: Metadata) -> Operation<H, R>
Attaches metadata to the operation.
sourcepub fn with_retry_classifier<R2>(self, retry_classifier: R2) -> Operation<H, R2>
pub fn with_retry_classifier<R2>(self, retry_classifier: R2) -> Operation<H, R2>
Replaces the retry classifier on the operation.
sourcepub fn retry_classifier(&self) -> &R
pub fn retry_classifier(&self) -> &R
Returns the retry classifier for this operation.