pub struct ReservedHeader;Expand description
An error when attempting to insert a value for a reserved header.
It is returned as an error when trying to insert a key-value pair into
SessionRequest where the key is one of the
reserved headers.
Trait Implementations§
Source§impl Debug for ReservedHeader
impl Debug for ReservedHeader
Source§impl Display for ReservedHeader
impl Display for ReservedHeader
Source§impl Error for ReservedHeader
impl Error for ReservedHeader
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ReservedHeader
impl RefUnwindSafe for ReservedHeader
impl Send for ReservedHeader
impl Sync for ReservedHeader
impl Unpin for ReservedHeader
impl UnwindSafe for ReservedHeader
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