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.
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
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 3 |
| Version | 26.7.0 |
| Revision | daab053ee433 |