pub struct Applied<T: Mutation> { /* private fields */ }Expand description
A successful apply with the required id of its committed history entry. Construction is private and result access is immutable.
ⓘ
use vvv_engine::{Applied, Rename};
let change_description = |mut applied: Applied<Rename>| {
applied.intent.to.clear();
};Implementations§
Source§impl<T: Mutation> Applied<T>
impl<T: Mutation> Applied<T>
Sourcepub fn history_id(&self) -> u64
pub fn history_id(&self) -> u64
The history entry committed by this apply.
Sourcepub fn into_mutation(self) -> Applied<MutationAnswer>
pub fn into_mutation(self) -> Applied<MutationAnswer>
Preserve the committed id while widening only to the closed mutation sum.
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
The applied wire payload without its in-process completion handle.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Applied<T>where
T: Freeze,
impl<T> RefUnwindSafe for Applied<T>where
T: RefUnwindSafe,
impl<T> Send for Applied<T>where
T: Send,
impl<T> Sync for Applied<T>where
T: Sync,
impl<T> Unpin for Applied<T>where
T: Unpin,
impl<T> UnsafeUnpin for Applied<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Applied<T>where
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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