pub struct FileLocks { /* private fields */ }
Available on non-WebAssembly only.
Expand description
Manages a collection of exclusive file locks.
This prevents server process’ possibly running on other ports from writing to the files concurrently.
It does not prevent other programs from writing to those files and corrupting the data.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FileLocks
impl Send for FileLocks
impl Sync for FileLocks
impl Unpin for FileLocks
impl UnwindSafe for FileLocks
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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