Skip to main content

StateCopy

Trait StateCopy 

Source
pub auto trait StateCopy { }
Expand description

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

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

impl !StateCopy for Connected {}

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Auto implementors§

§

impl StateCopy for ConcreteStateKind

§

impl StateCopy for DynStorage

§

impl StateCopy for MutexStorage

§

impl StateCopy for RefCellStorage

§

impl StateCopy for RwLockStorage

§

impl StateCopy for StorageStateOwned

§

impl StateCopy for StorageStateOwnedBox

§

impl StateCopy for StorageStateOwnedPinBox

§

impl StateCopy for UnionStateKind

§

impl StateCopy for WrongStateError

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

impl<T> !StateCopy for DynState<T>

§

impl<T> !StateCopy for SharedValue<T>