Skip to main content

SArcMutex

Type Alias SArcMutex 

Source
pub type SArcMutex<T> = SArc<MutexStorage, T>;
Expand description

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

borrow and borrow_mut both acquire the mutex with try_lock, so a concurrent borrow reports the standard TryLockError through SharedStateError::Storage instead of blocking the caller.

Aliased Typeยง

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