#[repr(C)]pub struct vrt_endpoint {
pub magic: c_uint,
pub ipv4: VCL_IP,
pub ipv6: VCL_IP,
pub uds_path: *const c_char,
pub preamble: *const vrt_blob,
}Expand description
We want the VCC to spit this structs out as const, but when VMODs come up with them we want to clone them into malloc’ed space which we can free again. We collect all the knowledge here by macroizing the fields and make a macro for handling them all. See also: cache_backend.h & cache_backend_cfg.c One of those things…
Fields§
§magic: c_uint§ipv4: VCL_IP§ipv6: VCL_IP§uds_path: *const c_char§preamble: *const vrt_blobTrait Implementations§
Source§impl Clone for vrt_endpoint
impl Clone for vrt_endpoint
Source§fn clone(&self) -> vrt_endpoint
fn clone(&self) -> vrt_endpoint
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for vrt_endpoint
impl Debug for vrt_endpoint
Source§impl Default for vrt_endpoint
impl Default for vrt_endpoint
impl Copy for vrt_endpoint
Auto Trait Implementations§
impl Freeze for vrt_endpoint
impl RefUnwindSafe for vrt_endpoint
impl !Send for vrt_endpoint
impl !Sync for vrt_endpoint
impl Unpin for vrt_endpoint
impl UnwindSafe for vrt_endpoint
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