pub fn toOwnedLock(self: *Manifest) Lock
Obtain only the data needed to maintain a lock on the manifest file. The Manifest remains safe to deinit.
Manifest
Don't forget to call writeManifest before this!
writeManifest
self: *Manifest
1224 1225 1226 1227
pub fn toOwnedLock(self: *Manifest) Lock { defer self.manifest_file = null; return .{ .manifest_file = self.manifest_file.? }; }
Obtain only the data needed to maintain a lock on the manifest file. The
Manifestremains safe to deinit.Don't forget to call
writeManifestbefore this!