Skip to main content

SMove

Trait SMove 

Source
pub trait SMove: MayTransition { }
Expand description

Storage backend whose state token can be consumed by value.

Use this when an API must move the backend representation itself rather than just read or mutate the runtime value. Most transition methods only need SMut.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl SMove for StorageStateOwned

Source§

impl SMove for StorageStateOwnedBox

Source§

impl SMove for StorageStateOwnedPinBox

Available on crate feature alloc only.