pub struct Headers(/* private fields */);Expand description
Read-only access to request headers in a handler signature.
Implementations§
Trait Implementations§
Source§impl FromRequest for Headers
impl FromRequest for Headers
async fn from_request(ctx: &mut RequestCtx) -> Result<Self>
Auto Trait Implementations§
impl Freeze for Headers
impl RefUnwindSafe for Headers
impl Send for Headers
impl Sync for Headers
impl Unpin for Headers
impl UnsafeUnpin for Headers
impl UnwindSafe for Headers
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