Enum actix_http::RequestHeadType
source · pub enum RequestHeadType {
Owned(RequestHead),
Rc(Rc<RequestHead>, Option<HeaderMap>),
}
Variants§
Owned(RequestHead)
Rc(Rc<RequestHead>, Option<HeaderMap>)
Implementations§
source§impl RequestHeadType
impl RequestHeadType
pub fn extra_headers(&self) -> Option<&HeaderMap>
Trait Implementations§
source§impl AsRef<RequestHead> for RequestHeadType
impl AsRef<RequestHead> for RequestHeadType
source§fn as_ref(&self) -> &RequestHead
fn as_ref(&self) -> &RequestHead
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Debug for RequestHeadType
impl Debug for RequestHeadType
source§impl From<RequestHead> for RequestHeadType
impl From<RequestHead> for RequestHeadType
source§fn from(head: RequestHead) -> Self
fn from(head: RequestHead) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for RequestHeadType
impl RefUnwindSafe for RequestHeadType
impl !Send for RequestHeadType
impl !Sync for RequestHeadType
impl Unpin for RequestHeadType
impl UnwindSafe for RequestHeadType
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