pub struct Mutations<T> {
pub inserts: Box<[Ops<T>]>,
pub deletes: Box<[Ops<T>]>,
pub truncates: Box<[TableId]>,
}Expand description
Mutations of the data store performed by a transaction.
All operations are supposed to be mutually exclusive.
Even though not enforced, each kind of mutation should not contain duplicate
TableIds.
Fields§
§inserts: Box<[Ops<T>]>Rows inserted.
deletes: Box<[Ops<T>]>Rows deleted.
truncates: Box<[TableId]>Truncated tables.
Implementations§
Source§impl<T: Encode> Mutations<T>
impl<T: Encode> Mutations<T>
Sourcepub fn encode(&self, buf: &mut impl BufWriter)
pub fn encode(&self, buf: &mut impl BufWriter)
Encode self in the canonical format to the given buffer.
pub fn skip<'a, V, R>(visitor: &mut V, reader: &mut R) -> Result<(), V::Error>
Trait Implementations§
impl<T> StructuralPartialEq for Mutations<T>
Auto Trait Implementations§
impl<T> Freeze for Mutations<T>
impl<T> RefUnwindSafe for Mutations<T>where
T: RefUnwindSafe,
impl<T> Send for Mutations<T>
impl<T> Sync for Mutations<T>
impl<T> Unpin for Mutations<T>
impl<T> UnwindSafe for Mutations<T>where
T: RefUnwindSafe,
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