pub struct RequestId(/* private fields */);
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 !Freeze for RequestId
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