Trait ArcRwLockLike

Source
pub trait ArcRwLockLike {
    type Container<T: ?Sized + Send + Sync>: FragileMutContainer<T> + Clone + Send + Sync;
}
Available on crate feature kinds only.
Expand description

A container kind trait based on how Arc<RwLock<T>> acts as a container for T.

Has strictly tighter requirements than FragileArcLike. Similar to RcRefCellLike, but not strictly tighter.

Required Associated Types§

Source

type Container<T: ?Sized + Send + Sync>: FragileMutContainer<T> + Clone + Send + Sync

An Arc<RwLock<T>>-like container type

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§