#[repr(C)]pub struct vrt_blob {
pub magic: c_uint,
pub type_: c_uint,
pub len: usize,
pub blob: *const c_void,
}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§
§magic: c_uint§type_: c_uint§len: usize§blob: *const c_voidTrait Implementations§
Auto Trait Implementations§
impl !Send for vrt_blob
impl !Sync for vrt_blob
impl Freeze for vrt_blob
impl RefUnwindSafe for vrt_blob
impl Unpin for vrt_blob
impl UnsafeUnpin for vrt_blob
impl UnwindSafe for vrt_blob
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