Struct varnish_sys::vrt_blob
source · [−]Expand description
VCL_BLOB:
Opaque, immutable data (pointer + length), minimum lifetime is the VCL task.
Type (optional) is owned by the creator of the blob. blob consumers may use it for checks, but should not assert on it.
The data behind the blob pointer is assumed to be immutable for the blob’s lifetime.
-
memory for shortlived blobs can be put on the tasks workspace
-
management of memory for longer lived blobs is up to the vmod (in which case the blob will probably be embedded in an object or referenced by other state with vcl lifetime)
Fields
type_: c_uintlen: size_tblob: *const c_voidTrait Implementations
impl Copy for vrt_blob
Auto Trait Implementations
impl RefUnwindSafe for vrt_blob
impl !Send for vrt_blob
impl !Sync for vrt_blob
impl Unpin for vrt_blob
impl UnwindSafe for vrt_blob
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more