pub struct StateRef<'a, T: Send + Sync + 'static, R> { /* private fields */ }Expand description
A held reference to something in the StateManager.
Whilst this is held, StateLifetime::try_drop will return its Err
variant, and dropping the StateManager will not drop the values held
within it.
Trait Implementations§
impl<T: Send + Sync + 'static, R> Send for StateRef<'_, T, R>
impl<T: Send + Sync + 'static, R> Sync for StateRef<'_, T, R>
Auto Trait Implementations§
impl<'a, T, R> Freeze for StateRef<'a, T, R>
impl<'a, T, R> !RefUnwindSafe for StateRef<'a, T, R>
impl<'a, T, R> Unpin for StateRef<'a, T, R>
impl<'a, T, R> !UnwindSafe for StateRef<'a, T, R>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more