pub struct RetainedResponseMetadata<'storage> { /* private fields */ }Expand description
Request identifier deliberately retained beyond a checked response guard.
This type is intentionally neither Copy nor Clone. Access is
closure-scoped and the complete caller-owned destination is
volatile-cleared on drop.
ⓘ
use cloud_sdk::transport::RetainedResponseMetadata;
fn require_copy<T: Copy>() {}
require_copy::<RetainedResponseMetadata<'static>>();Implementations§
Source§impl<'storage> RetainedResponseMetadata<'storage>
impl<'storage> RetainedResponseMetadata<'storage>
Sourcepub const fn has_request_id(&self) -> bool
pub const fn has_request_id(&self) -> bool
Reports whether a request identifier was retained.
Sourcepub fn with_request_id<R>(&self, inspect: impl FnOnce(Option<&[u8]>) -> R) -> R
pub fn with_request_id<R>(&self, inspect: impl FnOnce(Option<&[u8]>) -> R) -> R
Runs a closure with the retained opaque request-identifier bytes.
Trait Implementations§
Source§impl Debug for RetainedResponseMetadata<'_>
impl Debug for RetainedResponseMetadata<'_>
Source§impl Drop for RetainedResponseMetadata<'_>
impl Drop for RetainedResponseMetadata<'_>
Auto Trait Implementations§
impl<'storage> !UnwindSafe for RetainedResponseMetadata<'storage>
impl<'storage> Freeze for RetainedResponseMetadata<'storage>
impl<'storage> RefUnwindSafe for RetainedResponseMetadata<'storage>
impl<'storage> Send for RetainedResponseMetadata<'storage>
impl<'storage> Sync for RetainedResponseMetadata<'storage>
impl<'storage> Unpin for RetainedResponseMetadata<'storage>
impl<'storage> UnsafeUnpin for RetainedResponseMetadata<'storage>
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