Skip to main content

SArcRwLock

Type Alias SArcRwLock 

Source
pub type SArcRwLock<T> = SArc<RwLockStorage, T>;
Expand description

Shared state backed by Arc<RwLock<...>>.

Immutable borrows use try_read and can coexist with other immutable borrows. Mutable borrows use try_write and fail with the backend’s TryLockError while readers or another writer are alive.

Aliased Type§

pub struct SArcRwLock<T> { /* private fields */ }