#[repr(C)]
pub struct vrt_blob { pub type_: c_uint, pub len: size_t, 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

type_: c_uintlen: size_tblob: *const c_void

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.