#[non_exhaustive]pub enum SpaceEvent<'a> {
Committing(&'a [Change]),
Committed(&'a [Change]),
RolledBack,
}Expand description
What happens to a space, for whoever watches it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Committing(&'a [Change])
A commit is about to happen. An error stops it, and nothing is kept.
Committed(&'a [Change])
A commit happened.
RolledBack
The changes were thrown away.
Trait Implementations§
Source§impl<'a> Clone for SpaceEvent<'a>
impl<'a> Clone for SpaceEvent<'a>
Source§fn clone(&self) -> SpaceEvent<'a>
fn clone(&self) -> SpaceEvent<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SpaceEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for SpaceEvent<'a>
impl<'a> RefUnwindSafe for SpaceEvent<'a>
impl<'a> Send for SpaceEvent<'a>
impl<'a> Sync for SpaceEvent<'a>
impl<'a> Unpin for SpaceEvent<'a>
impl<'a> UnsafeUnpin for SpaceEvent<'a>
impl<'a> UnwindSafe for SpaceEvent<'a>
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