pub struct RequestId { /* private fields */ }Implementations§
Source§impl RequestId
impl RequestId
pub fn new() -> Self
Sourcepub fn header(self, name: &str) -> Self
pub fn header(self, name: &str) -> Self
Use a different header — X-Correlation-Id, X-Amzn-Trace-Id.
Sourcepub fn ignore_incoming(self) -> Self
pub fn ignore_incoming(self) -> Self
Always mint a fresh identifier, ignoring whatever the client sent.
For an application reached directly from the internet with no proxy in front, where nothing upstream is trusted to have chosen one.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RequestId
impl RefUnwindSafe for RequestId
impl Send for RequestId
impl Sync for RequestId
impl Unpin for RequestId
impl UnsafeUnpin for RequestId
impl UnwindSafe for RequestId
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