Skip to main content

Module rwlock

Module rwlock 

Source
๐Ÿ”ฌThis is a nightly-only experimental API. (sync_nonpoison #134645)

Re-exportsยง

use crate::cell::UnsafeCell; ๐Ÿ”’
use crate::fmt; ๐Ÿ”’
use crate::marker::PhantomData; ๐Ÿ”’
use crate::mem; ๐Ÿ”’
use crate::mem::ManuallyDrop; ๐Ÿ”’
use crate::mem::forget; ๐Ÿ”’
use crate::ops::Deref; ๐Ÿ”’
use crate::ops::DerefMut; ๐Ÿ”’
use crate::ptr::NonNull; ๐Ÿ”’
use crate::sync::nonpoison::TryLockResult; ๐Ÿ”’ Experimental
use crate::sync::nonpoison::WouldBlock; ๐Ÿ”’ Experimental
use crate::sys::sync as sys; ๐Ÿ”’

Structsยง

MappedRwLockReadGuardExperimental
RAII structure used to release the shared read access of a lock when dropped, which can point to a subfield of the protected data.
MappedRwLockWriteGuardExperimental
RAII structure used to release the exclusive write access of a lock when dropped, which can point to a subfield of the protected data.
RwLockExperimental
A reader-writer lock that does not keep track of lock poisoning.
RwLockReadGuardExperimental
RAII structure used to release the shared read access of a lock when dropped.
RwLockWriteGuardExperimental
RAII structure used to release the exclusive write access of a lock when dropped.