Skip to main content

StateClone

Trait StateClone 

Source
pub auto trait StateClone { }
Expand description

State policy permitting crate::State to clone its runtime value.

States implement this automatically. A definition crate can opt out with:

impl !StateClone for Sensitive {}

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Auto implementors§

§

impl StateClone for ConcreteStateKind

§

impl StateClone for DynStorage

§

impl StateClone for MutexStorage

§

impl StateClone for RefCellStorage

§

impl StateClone for RwLockStorage

§

impl StateClone for StorageStateOwned

§

impl StateClone for StorageStateOwnedBox

§

impl StateClone for StorageStateOwnedPinBox

§

impl StateClone for UnionStateKind

§

impl StateClone for WrongStateError

§

impl<'a, Backend> StateClone for StorageStateMut<'a, Backend>
where Backend: StateClone,

§

impl<'a, Backend> StateClone for StorageStateRef<'a, Backend>
where Backend: StateClone,

§

impl<G, T, S> !StateClone for StateMut<G, T, S>

§

impl<G, T, S> StateClone for StateRef<G, T, S>
where G: StateClone,

§

impl<P, S, T> StateClone for SharedState<P, S, T>
where P: StateClone,

§

impl<Storage, T, S> StateClone for State<Storage, T, S>
where <Storage as StateStorage>::Inner<T, S>: StateClone,

§

impl<Storage, T> StateClone for WeakSArc<Storage, T>
where <Storage as SharedStorage>::Storage<T>: StateClone,

§

impl<Storage, T> StateClone for WeakSRc<Storage, T>
where <Storage as SharedStorage>::Storage<T>: StateClone,

§

impl<StorageError> StateClone for SharedStateError<StorageError>
where StorageError: StateClone,

§

impl<T, S> StateClone for ConcreteStated<T, S>
where T: StateClone,

§

impl<T, S> StateClone for StateOwned<T, S>
where T: StateClone,

§

impl<T> !StateClone for DynState<T>

§

impl<T> !StateClone for SharedValue<T>