pub struct InMemoryLockManager { /* private fields */ }Expand description
内存锁管理器
Implementations§
Source§impl InMemoryLockManager
impl InMemoryLockManager
Sourcepub fn create_lock(&self, key: impl Into<String>) -> InMemoryLock
pub fn create_lock(&self, key: impl Into<String>) -> InMemoryLock
创建锁实例
Trait Implementations§
Source§impl Clone for InMemoryLockManager
impl Clone for InMemoryLockManager
Auto Trait Implementations§
impl !Freeze for InMemoryLockManager
impl !RefUnwindSafe for InMemoryLockManager
impl Send for InMemoryLockManager
impl Sync for InMemoryLockManager
impl Unpin for InMemoryLockManager
impl UnsafeUnpin for InMemoryLockManager
impl UnwindSafe for InMemoryLockManager
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