pub struct FileLock {
inner: Box<dyn UnlockableFile>,
}Expand description
An opaque handle for locked files.
The underlying file will be dropped when the handle is dropped.
Fields§
§inner: Box<dyn UnlockableFile>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileLock
impl !RefUnwindSafe for FileLock
impl Send for FileLock
impl Sync for FileLock
impl Unpin for FileLock
impl !UnwindSafe for FileLock
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