pub struct RepoLock { /* private fields */ }Implementations§
Source§impl RepoLock
impl RepoLock
pub fn new(repo_root: &Path) -> Self
pub fn at(lock_path: PathBuf) -> Self
pub fn read(&self) -> Result<ReadLockGuard>
pub fn write(&self) -> Result<WriteLockGuard>
pub fn try_read(&self) -> Result<Option<ReadLockGuard>>
pub fn try_write(&self) -> Result<Option<WriteLockGuard>>
Auto Trait Implementations§
impl Freeze for RepoLock
impl RefUnwindSafe for RepoLock
impl Send for RepoLock
impl Sync for RepoLock
impl Unpin for RepoLock
impl UnsafeUnpin for RepoLock
impl UnwindSafe for RepoLock
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