pub struct MutexRef<'a> { /* private fields */ }Available on crate features
mutex or serialized only.Implementations§
Source§impl<'a> MutexRef<'a>
impl<'a> MutexRef<'a>
pub fn lock(&self) -> MutexGuard<'_>
Available on crate feature
mutex only.pub fn try_lock(&self) -> Option<MutexGuard<'_>>
Available on crate feature
mutex only.Source§impl MutexRef<'static>
impl MutexRef<'static>
Sourcepub fn global(mutex: StaticMutex) -> Option<Self>
Available on crate feature mutex only.
pub fn global(mutex: StaticMutex) -> Option<Self>
mutex only.Access a SQLite static mutex.
Returns None if sqlite3_mutex_alloc returns NULL.
Trait Implementations§
impl<'a> Eq for MutexRef<'a>
Available on crate feature
mutex only.impl<'a> StructuralPartialEq for MutexRef<'a>
Available on crate feature
mutex only.Auto Trait Implementations§
impl<'a> Freeze for MutexRef<'a>
impl<'a> RefUnwindSafe for MutexRef<'a>
impl<'a> !Send for MutexRef<'a>
impl<'a> !Sync for MutexRef<'a>
impl<'a> Unpin for MutexRef<'a>
impl<'a> UnsafeUnpin for MutexRef<'a>
impl<'a> UnwindSafe for MutexRef<'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