Skip to main content

SRefView

Type Alias SRefView 

Source
pub type SRefView<'a, Backend, T, S> = State<StorageStateRef<'a, Backend>, T, S>;
Expand description

State view held by an immutable guard from a shared storage backend.

This is the return type of SharedState::borrow. It implements SRef but not SMut, so it supports read-only arbitrary-self receivers such as self: &State<impl SRef, Self, impl InOnline> while preventing generated transitions from completing.

Aliased Typeยง

pub struct SRefView<'a, Backend, T, S> { /* private fields */ }