pub struct Apply<T: Mutation>(pub Planned<T>);Expand description
Write what was planned and record it as one history entry — one undo. A batch’s steps go in order, each checked against the state the previous one left; if a step fails, the ones before it are rolled back. Answers with the result marked applied. Query answers cannot be applied:
ⓘ
use vvv_engine::{Answer, Apply};
let _: Option<Apply<Answer>> = None;Tuple Fields§
§0: Planned<T>Implementations§
Auto Trait Implementations§
impl<T> Freeze for Apply<T>
impl<T> RefUnwindSafe for Apply<T>where
Planned<T>: RefUnwindSafe,
impl<T> Send for Apply<T>
impl<T> Sync for Apply<T>
impl<T> Unpin for Apply<T>
impl<T> UnsafeUnpin for Apply<T>where
Planned<T>: UnsafeUnpin,
impl<T> UnwindSafe for Apply<T>where
Planned<T>: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more