#[repr(C)]pub struct vrt_ctx {Show 20 fields
pub magic: c_uint,
pub syntax: c_uint,
pub vclver: c_uint,
pub method: c_uint,
pub vpi: *mut wrk_vpi,
pub msg: *mut vsb,
pub vsl: *mut vsl_log,
pub vcl: VCL_VCL,
pub ws: *mut ws,
pub sp: *mut sess,
pub req: *mut req,
pub http_req: VCL_HTTP,
pub http_req_top: VCL_HTTP,
pub http_resp: VCL_HTTP,
pub bo: *mut busyobj,
pub http_bereq: VCL_HTTP,
pub http_beresp: VCL_HTTP,
pub now: vtim_real,
pub specific: *mut c_void,
pub called: *mut c_void,
}Expand description
This is the composite “context” argument for compiled VCL, VRT and VMOD functions.
Fields§
§magic: c_uint§syntax: c_uint§vclver: c_uint§method: c_uint§vpi: *mut wrk_vpi§msg: *mut vsb§vsl: *mut vsl_log§vcl: VCL_VCL§ws: *mut ws§sp: *mut sess§req: *mut req§http_req: VCL_HTTP§http_req_top: VCL_HTTP§http_resp: VCL_HTTP§bo: *mut busyobj§http_bereq: VCL_HTTP§http_beresp: VCL_HTTP§now: vtim_real§specific: *mut c_void§called: *mut c_voidImplementations§
Source§impl vrt_ctx
impl vrt_ctx
pub fn validated_req(&mut self) -> &mut req
pub fn fetch_filters<'c, 'f>( &'c self, filters: &'f mut Vec<Box<vfp>>, ) -> FetchFilters<'c, 'f>
pub fn delivery_filters<'c, 'f>( &'c self, filters: &'f mut Vec<Box<vdp>>, ) -> DeliveryFilters<'c, 'f>
Trait Implementations§
impl Copy for vrt_ctx
Auto Trait Implementations§
impl Freeze for vrt_ctx
impl RefUnwindSafe for vrt_ctx
impl !Send for vrt_ctx
impl !Sync for vrt_ctx
impl Unpin for vrt_ctx
impl UnwindSafe for vrt_ctx
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