pub struct ChangeSet { /* private fields */ }Expand description
What a unit of work has waiting, for whoever implements one: new, changed and deleted records, one change per record.
Implementations§
Source§impl ChangeSet
impl ChangeSet
Sourcepub fn save(
&mut self,
entity: &EntityInfo,
object: Object,
exists: bool,
) -> Result<(), SpaceError>
pub fn save( &mut self, entity: &EntityInfo, object: Object, exists: bool, ) -> Result<(), SpaceError>
Marks a record as new or changed. exists says whether storage has its key.
Sourcepub fn insert(
&mut self,
entity: &EntityInfo,
object: Object,
exists: bool,
) -> Result<(), SpaceError>
pub fn insert( &mut self, entity: &EntityInfo, object: Object, exists: bool, ) -> Result<(), SpaceError>
Marks a record as new, refusing a key in use. exists says whether storage has it.
Sourcepub fn delete(&mut self, entity: &EntityInfo, key: &Value, exists: bool)
pub fn delete(&mut self, entity: &EntityInfo, key: &Value, exists: bool)
Marks a record to go away. exists says whether storage has it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChangeSet
impl RefUnwindSafe for ChangeSet
impl Send for ChangeSet
impl Sync for ChangeSet
impl Unpin for ChangeSet
impl UnsafeUnpin for ChangeSet
impl UnwindSafe for ChangeSet
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