req

Struct req 

Source
#[repr(C)]
pub struct req {
Show 51 fields pub magic: c_uint, pub esi_level: c_uint, pub req_body_status: body_status_t, pub doclose: stream_close_t, pub restarts: c_uint, pub max_restarts: c_uint, pub req_step: *const req_step, pub top: *mut reqtop, pub err_code: u16, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>, pub err_reason: *const c_char, pub sp: *mut sess, pub wrk: *mut worker, pub task: [pool_task; 1], pub transport: *const transport, pub transport_priv: *mut c_void, pub w_list: req__bindgen_ty_1, pub body_oc: *mut objcore, pub hash_objhead: *mut objhead, pub vary_b: *mut u8, pub vary_e: *mut u8, pub digest: [u8; 32], pub d_ttl: vtim_dur, pub d_grace: vtim_dur, pub storage: *const stevedore, pub director_hint: *const director, pub vcl: *mut vcl, pub ws_req: usize, pub t_first: vtim_real, pub t_prev: vtim_real, pub t_req: vtim_real, pub t_resp: vtim_real, pub htc: *mut http_conn, pub vfc: *mut vfp_ctx, pub client_identity: *const c_char, pub http: *mut http, pub http0: *mut http, pub resp: *mut http, pub resp_len: intmax_t, pub ws: [ws; 1], pub objcore: *mut objcore, pub stale_oc: *mut objcore, pub boc: *mut boc, pub vdc: *mut vdp_ctx, pub vdp_filter_list: *const c_char, pub vfp_filter_list: *const c_char, pub vsl: [vsl_log; 1], pub acct: acct_req, pub privs: [vrt_privs; 1], pub vcf: *mut vcf,
}

Fields§

§magic: c_uint§esi_level: c_uint§req_body_status: body_status_t§doclose: stream_close_t§restarts: c_uint§max_restarts: c_uint§req_step: *const req_step§top: *mut reqtop§err_code: u16§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>§err_reason: *const c_char§sp: *mut sess§wrk: *mut worker§task: [pool_task; 1]§transport: *const transport§transport_priv: *mut c_void§w_list: req__bindgen_ty_1§body_oc: *mut objcore§hash_objhead: *mut objhead§vary_b: *mut u8§vary_e: *mut u8§digest: [u8; 32]§d_ttl: vtim_dur§d_grace: vtim_dur§storage: *const stevedore§director_hint: *const director§vcl: *mut vcl§ws_req: usize§t_first: vtim_real§t_prev: vtim_real§t_req: vtim_real§t_resp: vtim_real§htc: *mut http_conn§vfc: *mut vfp_ctx§client_identity: *const c_char§http: *mut http§http0: *mut http§resp: *mut http§resp_len: intmax_t§ws: [ws; 1]§objcore: *mut objcore§stale_oc: *mut objcore§boc: *mut boc§vdc: *mut vdp_ctx§vdp_filter_list: *const c_char§vfp_filter_list: *const c_char§vsl: [vsl_log; 1]§acct: acct_req§privs: [vrt_privs; 1]§vcf: *mut vcf

Implementations§

Source§

impl req

Source

pub fn disable_esi(&self) -> c_uint

Source

pub fn set_disable_esi(&mut self, val: c_uint)

Source

pub unsafe fn disable_esi_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_disable_esi_raw(this: *mut Self, val: c_uint)

Source

pub fn hash_ignore_busy(&self) -> c_uint

Source

pub fn set_hash_ignore_busy(&mut self, val: c_uint)

Source

pub unsafe fn hash_ignore_busy_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_hash_ignore_busy_raw(this: *mut Self, val: c_uint)

Source

pub fn hash_ignore_vary(&self) -> c_uint

Source

pub fn set_hash_ignore_vary(&mut self, val: c_uint)

Source

pub unsafe fn hash_ignore_vary_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_hash_ignore_vary_raw(this: *mut Self, val: c_uint)

Source

pub fn hash_always_miss(&self) -> c_uint

Source

pub fn set_hash_always_miss(&mut self, val: c_uint)

Source

pub unsafe fn hash_always_miss_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_hash_always_miss_raw(this: *mut Self, val: c_uint)

Source

pub fn is_hit(&self) -> c_uint

Source

pub fn set_is_hit(&mut self, val: c_uint)

Source

pub unsafe fn is_hit_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_is_hit_raw(this: *mut Self, val: c_uint)

Source

pub fn waitinglist(&self) -> c_uint

Source

pub fn set_waitinglist(&mut self, val: c_uint)

Source

pub unsafe fn waitinglist_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_waitinglist_raw(this: *mut Self, val: c_uint)

Source

pub fn want100cont(&self) -> c_uint

Source

pub fn set_want100cont(&mut self, val: c_uint)

Source

pub unsafe fn want100cont_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_want100cont_raw(this: *mut Self, val: c_uint)

Source

pub fn late100cont(&self) -> c_uint

Source

pub fn set_late100cont(&mut self, val: c_uint)

Source

pub unsafe fn late100cont_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_late100cont_raw(this: *mut Self, val: c_uint)

Source

pub fn req_reset(&self) -> c_uint

Source

pub fn set_req_reset(&mut self, val: c_uint)

Source

pub unsafe fn req_reset_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_req_reset_raw(this: *mut Self, val: c_uint)

Source

pub fn res_esi(&self) -> c_uint

Source

pub fn set_res_esi(&mut self, val: c_uint)

Source

pub unsafe fn res_esi_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_res_esi_raw(this: *mut Self, val: c_uint)

Source

pub fn res_pipe(&self) -> c_uint

Source

pub fn set_res_pipe(&mut self, val: c_uint)

Source

pub unsafe fn res_pipe_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_res_pipe_raw(this: *mut Self, val: c_uint)

Source

pub fn is_hitmiss(&self) -> c_uint

Source

pub fn set_is_hitmiss(&mut self, val: c_uint)

Source

pub unsafe fn is_hitmiss_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_is_hitmiss_raw(this: *mut Self, val: c_uint)

Source

pub fn is_hitpass(&self) -> c_uint

Source

pub fn set_is_hitpass(&mut self, val: c_uint)

Source

pub unsafe fn is_hitpass_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_is_hitpass_raw(this: *mut Self, val: c_uint)

Source

pub fn trace(&self) -> c_uint

Source

pub fn set_trace(&mut self, val: c_uint)

Source

pub unsafe fn trace_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_trace_raw(this: *mut Self, val: c_uint)

Source

pub fn new_bitfield_1( disable_esi: c_uint, hash_ignore_busy: c_uint, hash_ignore_vary: c_uint, hash_always_miss: c_uint, is_hit: c_uint, waitinglist: c_uint, want100cont: c_uint, late100cont: c_uint, req_reset: c_uint, res_esi: c_uint, res_pipe: c_uint, is_hitmiss: c_uint, is_hitpass: c_uint, trace: c_uint, ) -> __BindgenBitfieldUnit<[u8; 2]>

Source§

impl req

Source

pub fn validated_session(&mut self) -> &sess

Trait Implementations§

Source§

impl Clone for req

Source§

fn clone(&self) -> req

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for req

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for req

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for req

Auto Trait Implementations§

§

impl Freeze for req

§

impl RefUnwindSafe for req

§

impl !Send for req

§

impl !Sync for req

§

impl Unpin for req

§

impl UnwindSafe for req

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.