pub struct Final<V, S> {
pub value: V,
pub save: S,
}Expand description
Final value distinguishing return value from saved state
Used in entrypoint functions to separate what’s returned to caller from what’s saved to checkpoint.
Fields§
§value: VValue returned to caller
save: SState update to save to checkpoint
Trait Implementations§
Auto Trait Implementations§
impl<V, S> Freeze for Final<V, S>
impl<V, S> RefUnwindSafe for Final<V, S>where
V: RefUnwindSafe,
S: RefUnwindSafe,
impl<V, S> Send for Final<V, S>
impl<V, S> Sync for Final<V, S>
impl<V, S> Unpin for Final<V, S>
impl<V, S> UnsafeUnpin for Final<V, S>where
V: UnsafeUnpin,
S: UnsafeUnpin,
impl<V, S> UnwindSafe for Final<V, S>where
V: UnwindSafe,
S: UnwindSafe,
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