Skip to documentation
SLOP

alloc_observe.LifecycleDisposition

Reference alloc_observe LifecycleDisposition

Internal implementation documentation

Defined in alloc_observe.

Specifies how a lifecycle event affects allocations belonging to the emitting producer: none indicates a standard allocator operation, invalidate marks earlier allocations as having lost validity, and end signals that the producer owner lifetime has completed.

API (3)

Fields and members

Public fields and members.

No direct callersNo direct callsalloc_observeLifecycleDisposition
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/alloc/observe/src/protocol.zig:60

zig
/// Specifies how a lifecycle event affects allocations belonging to the/// emitting producer: none indicates a standard allocator operation, invalidate/// marks earlier allocations as having lost validity, and end signals that the/// producer owner lifetime has completed. The emitting allocator supplies this/// disposition directly. The observation protocol forwards the value to the/// installed sink without validating owner state or enforcing lifetime/// guarantees.pub const LifecycleDisposition = enum(u8) {    none,    invalidate,    end,};

Source: lib/alloc/observe/src/root.zig:368

zig
/// Specifies how a lifecycle event affects allocations belonging to the/// emitting producer: none indicates a standard allocator operation, invalidate/// marks earlier allocations as having lost validity, and end signals that the/// producer owner lifetime has completed. The emitting allocator supplies this/// disposition directly. The observation protocol forwards the value to the/// installed sink without validating owner state or enforcing lifetime/// guarantees.pub const LifecycleDisposition = protocol.LifecycleDisposition;

Audit

Definitions1
Public names1
Members3
Version26.7.0
Revisiondaab053ee433