Struct varnish_sys::req

source ·
#[repr(C)]
pub struct req {
Show 49 fields pub magic: c_uint, pub req_body_status: body_status_t, pub doclose: stream_close_t, pub restarts: c_uint, pub esi_level: c_uint, pub res_mode: c_uint, pub req_step: *const req_step, pub top: *mut reqtop, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>, pub err_code: u16, 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 vdc: *mut vdp_ctx, pub 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§req_body_status: body_status_t§doclose: stream_close_t§restarts: c_uint§esi_level: c_uint§res_mode: c_uint§req_step: *const req_step§top: *mut reqtop§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>§err_code: u16§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§vdc: *mut vdp_ctx§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 fn hash_ignore_busy(&self) -> c_uint

source

pub fn set_hash_ignore_busy(&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 fn hash_always_miss(&self) -> c_uint

source

pub fn set_hash_always_miss(&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 fn waitinglist(&self) -> c_uint

source

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

source

pub fn want100cont(&self) -> c_uint

source

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

source

pub fn late100cont(&self) -> c_uint

source

pub fn set_late100cont(&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 fn is_hitpass(&self) -> c_uint

source

pub fn set_is_hitpass(&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, is_hitmiss: c_uint, is_hitpass: c_uint ) -> __BindgenBitfieldUnit<[u8; 2]>

Trait Implementations§

source§

impl Clone for req

source§

fn clone(&self) -> req

Returns a copy 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 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 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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · 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.
const: unstable · source§

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

Performs the conversion.