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.