Skip to main content
RwLock
starnix_
sync
RwLock
Aliased Type
Trait Implementations
RwLockLike
In crate starnix_
sync
starnix_sync
Type Alias
RwLock
Copy item path
Source
pub type RwLock<T> =
RwLock
<RawSyncRwLock, T>;
Aliased Type
§
pub struct RwLock<T> {
/* private fields */
}
Trait Implementations
§
Source
§
impl<T>
RwLockLike
for
RwLock
<T>
Source
§
type
ReadGuard
<'a> =
RwLockReadGuard
<'a, RawSyncRwLock, T>
where T: 'a
Source
§
type
WriteGuard
<'a> =
RwLockWriteGuard
<'a, RawSyncRwLock, T>
where T: 'a
Source
§
type
Context
=
()
Source
§
fn
context
() -> Self::
Context
Source
§
fn
read
(&self, _context: &mut Self::
Context
) -> Self::
ReadGuard
<'_>
Source
§
fn
write
(&self, _context: &mut Self::
Context
) -> Self::
WriteGuard
<'_>
Source
§
fn
key
(&self) ->
*const
()
where Self:
Sized
,