Struct aws_runtime::request_info::RequestPairs
source · pub struct RequestPairs { /* private fields */ }
Expand description
A builder for creating a RequestPairs
header value. RequestPairs
is used to generate a
retry information header that is sent with every request. The information conveyed by this
header allows services to anticipate whether a client will time out or retry a request.
Implementations§
source§impl RequestPairs
impl RequestPairs
sourcepub fn with_pair(
self,
pair: (impl Into<Cow<'static, str>>, impl Into<Cow<'static, str>>)
) -> Self
pub fn with_pair( self, pair: (impl Into<Cow<'static, str>>, impl Into<Cow<'static, str>>) ) -> Self
Adds a pair to the RequestPairs
builder.
Only strings that can be converted to header values are considered valid.
sourcepub fn try_into_header_value(self) -> Result<HeaderValue, BoxError>
pub fn try_into_header_value(self) -> Result<HeaderValue, BoxError>
Converts the RequestPairs
builder into a HeaderValue
.
Trait Implementations§
source§impl Debug for RequestPairs
impl Debug for RequestPairs
source§impl Default for RequestPairs
impl Default for RequestPairs
source§fn default() -> RequestPairs
fn default() -> RequestPairs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for RequestPairs
impl Send for RequestPairs
impl Sync for RequestPairs
impl Unpin for RequestPairs
impl UnwindSafe for RequestPairs
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more