pub trait SRef: StateStorage {
// Required method
fn s_ref<T, State>(inner: &Self::Inner<T, State>) -> &T
where T: StateMachineImpl;
}Expand description
Storage backend that can expose a runtime reference.
Use S: SRef for methods that only read the runtime implementation. This
bound covers owned states, boxed/pinned states, and read or write guards
from shared storage.
Required Methods§
Sourcefn s_ref<T, State>(inner: &Self::Inner<T, State>) -> &Twhere
T: StateMachineImpl,
fn s_ref<T, State>(inner: &Self::Inner<T, State>) -> &Twhere
T: StateMachineImpl,
Borrows the runtime implementation from this storage backend.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl SRef for StorageStateOwned
impl SRef for StorageStateOwnedBox
impl SRef for StorageStateOwnedPinBox
Available on crate feature
alloc only.