Function toOwnedLock [src]

Obtain only the data needed to maintain a lock on the manifest file. The Manifest remains safe to deinit. Don't forget to call writeManifest before this!

Prototype

pub fn toOwnedLock(self: *Manifest) Lock

Parameters

self: *Manifest

Source

pub fn toOwnedLock(self: *Manifest) Lock { const lock: Lock = .{ .manifest_file = self.manifest_file.?, }; self.manifest_file = null; return lock; }