Skip to main content

SPin

Type Alias SPin 

Source
pub type SPin<T, S> = StateOwned<Pin<T>, S>;
Expand description

Owned state whose runtime value is pinned by an arbitrary pinning pointer.

This is the direct owned alias for StateOwned<Pin<P>, S>. In generic state-machine methods prefer State plus a storage backend such as SPinBox, because that keeps the same method usable for owned, boxed, pinned, and guard-backed states.

Aliased Typeยง

pub struct SPin<T, S> { /* private fields */ }