Struct tower_http::request_id::RequestId
source · pub struct RequestId(_);
Available on crate feature
request-id
only.Expand description
An identifier for a request.
Implementations§
source§impl RequestId
impl RequestId
sourcepub fn new(header_value: HeaderValue) -> Self
pub fn new(header_value: HeaderValue) -> Self
Create a new RequestId
from a HeaderValue
.
sourcepub fn header_value(&self) -> &HeaderValue
pub fn header_value(&self) -> &HeaderValue
Gets a reference to the underlying HeaderValue
.
sourcepub fn into_header_value(self) -> HeaderValue
pub fn into_header_value(self) -> HeaderValue
Consumes self
, returning the underlying HeaderValue
.
Trait Implementations§
source§impl From<HeaderValue> for RequestId
impl From<HeaderValue> for RequestId
source§fn from(value: HeaderValue) -> Self
fn from(value: HeaderValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for RequestId
impl Send for RequestId
impl Sync for RequestId
impl Unpin 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