pub struct Lock<'a> { /* private fields */ }Expand description
This is a try lock that expires automatically if it was not refreshed before the expiration time. The lock is released on drop.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for Lock<'a>
impl<'a> !RefUnwindSafe for Lock<'a>
impl<'a> !Send for Lock<'a>
impl<'a> !Sync for Lock<'a>
impl<'a> Unpin for Lock<'a>
impl<'a> !UnwindSafe for Lock<'a>
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