pub struct FileMutationQueue { /* private fields */ }Expand description
Serializes file mutation operations per canonical path.
Implementations§
Source§impl FileMutationQueue
impl FileMutationQueue
Sourcepub async fn with_queue<F, Fut, T>(&self, path: &Path, f: F) -> T
pub async fn with_queue<F, Fut, T>(&self, path: &Path, f: F) -> T
Execute a mutation operation on a file, serialized per canonical path. If the file doesn’t exist yet, uses the path as-is.
Trait Implementations§
Source§impl Debug for FileMutationQueue
impl Debug for FileMutationQueue
Auto Trait Implementations§
impl Freeze for FileMutationQueue
impl !RefUnwindSafe for FileMutationQueue
impl Send for FileMutationQueue
impl Sync for FileMutationQueue
impl Unpin for FileMutationQueue
impl UnsafeUnpin for FileMutationQueue
impl !UnwindSafe for FileMutationQueue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more