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(value: RequestHead) -> Self
fn from(value: RequestHead) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for RequestHeadType
impl !Send for RequestHeadType
impl !Sync for RequestHeadType
impl Forget for RequestHeadType
impl Move for RequestHeadType
impl RefUnwindSafe for RequestHeadTypewhere
Atomic<*mut ()>: RefUnwindSafe,
HeaderValue: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
Rc<RequestHead>: RefUnwindSafe,
impl Unpin for RequestHeadType
impl UnsafeUnpin for RequestHeadTypewhere
*const [u8] is !null: UnsafeUnpin,
PhantomData<[u8]>: UnsafeUnpin,
*const ByteStr is !null: UnsafeUnpin,
PhantomData<ByteStr>: UnsafeUnpin,
*const u8: UnsafeUnpin,
Align8<*mut ()>: UnsafeUnpin,
&'static Vtable: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(HeaderName, Value)>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
*const RcInner<RequestHead> is !null: UnsafeUnpin,
PhantomData<RcInner<RequestHead>>: UnsafeUnpin,
impl UnwindSafe for RequestHeadTypewhere
BoxRaw<[u8]>: UnwindSafe,
BoxRaw<ByteStr>: UnwindSafe,
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
HashMap<HeaderName, Value, RandomState>: UnwindSafe,
InternalBitFlags: UnwindSafe,
Rc<RequestHead>: UnwindSafe,
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