tiny.trace.CheckpointProvider
Defined in checkpoint.
API (9)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/trace/src/checkpoint.zig:10
zig
pub const Provider = struct { context: *anyopaque, capture: CaptureFn, prepare_restore: PrepareRestoreFn, commit_restore: CommitRestoreFn, cancel_restore: CancelRestoreFn, pub fn captureAlloc(self: Provider, allocator: Allocator) ![]u8 { return try self.capture(self.context, allocator); } pub fn prepareRestoreBytes(self: Provider, bytes: []const u8) !void { try self.prepare_restore(self.context, bytes); } pub fn commitRestore(self: Provider) void { self.commit_restore(self.context); } pub fn cancelRestore(self: Provider) void { self.cancel_restore(self.context); }};Source: lib/trace/src/root.zig:54
zig
pub const CheckpointProvider = checkpoint.Provider;Audit
| Definitions | 5 |
|---|---|
| Public names | 10 |
| Members | 5 |
| Version | 26.7.0 |
| Revision | daab053ee433 |