pub struct Ids(pub RequestIds);Available on crate feature
server only.Expand description
The X-Request-ID and X-Correlation-ID of the request.
Missing IDs are generated rather than refused: they are required of the peer, but failing a request over a missing debugging header would be worse than answering it and echoing what was used.
Tuple Fields§
§0: RequestIdsTrait Implementations§
Auto Trait Implementations§
impl Freeze for Ids
impl RefUnwindSafe for Ids
impl Send for Ids
impl Sync for Ids
impl Unpin for Ids
impl UnsafeUnpin for Ids
impl UnwindSafe for Ids
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S, T> FromRequest<S, ViaParts> for T
impl<S, T> FromRequest<S, ViaParts> for T
Source§type Rejection = <T as FromRequestParts<S>>::Rejection
type Rejection = <T as FromRequestParts<S>>::Rejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Source§fn from_request(
req: Request<Body>,
state: &S,
) -> impl Future<Output = Result<T, <T as FromRequest<S, ViaParts>>::Rejection>>
fn from_request( req: Request<Body>, state: &S, ) -> impl Future<Output = Result<T, <T as FromRequest<S, ViaParts>>::Rejection>>
Perform the extraction.