pub struct Marker { /* fields omitted */ }
Expand description
Locks a resource to allow related resources to be updated using files.
As opposed to the File type this one won’t keep the tempfile open for writing and thus consumes no
system resources, nor can it be persisted.
Like acquire_to_update_resource()
but without the possibility to make changes
and commit them.
If boundary_directory
is given, non-existing directories will be created automatically and removed in the case of
a rollback.
Commit the changes written to the previously open file and overwrite the original file atomically, returning the resource path
on success.
This fails for markers which weren’t created with File::close()
Return the path at which the lock file resides
Return the path at which the locked resource resides
Formats the value using the given formatter. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,