pub enum LockPath<P: AsRef<Path>> {
Tmp(P),
FullPath(P),
}
Expand description
Represents the path in which the lock should be created.
Variants§
Tmp(P)
Indicates that P
should be created in std::env::temp_dir()
FullPath(P)
Indicates that P
is an absolute path
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for LockPath<P>where
P: Freeze,
impl<P> RefUnwindSafe for LockPath<P>where
P: RefUnwindSafe,
impl<P> Send for LockPath<P>where
P: Send,
impl<P> Sync for LockPath<P>where
P: Sync,
impl<P> Unpin for LockPath<P>where
P: Unpin,
impl<P> UnwindSafe for LockPath<P>where
P: UnwindSafe,
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