pub struct RequestData<'buf, 'headers> {
Show 18 fields pub credits: u32, pub more: bool, pub stream: bool, pub max_size: u32, pub timeout: u32, pub method: &'buf str, pub uri: &'buf str, pub headers: &'headers [Header<'buf>], pub content_type: Option<ContentType>, pub body: &'buf [u8], pub peer_address: &'buf str, pub peer_port: u16, pub connect_host: &'buf str, pub connect_port: u16, pub ignore_policies: bool, pub trust_connect_host: bool, pub ignore_tls_errors: bool, pub follow_redirects: bool,
}

Fields§

§credits: u32§more: bool§stream: bool§max_size: u32§timeout: u32§method: &'buf str§uri: &'buf str§headers: &'headers [Header<'buf>]§content_type: Option<ContentType>§body: &'buf [u8]§peer_address: &'buf str§peer_port: u16§connect_host: &'buf str§connect_port: u16§ignore_policies: bool§trust_connect_host: bool§ignore_tls_errors: bool§follow_redirects: bool

Implementations§

source§

impl RequestData<'_, '_>

source

pub fn new() -> Self

Auto Trait Implementations§

§

impl<'buf, 'headers> RefUnwindSafe for RequestData<'buf, 'headers>

§

impl<'buf, 'headers> Send for RequestData<'buf, 'headers>

§

impl<'buf, 'headers> Sync for RequestData<'buf, 'headers>

§

impl<'buf, 'headers> Unpin for RequestData<'buf, 'headers>

§

impl<'buf, 'headers> UnwindSafe for RequestData<'buf, 'headers>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.