pub enum RewindError {
Apply(ApplyError, Vec<u8>),
ResourceDestroyed(Vec<u8>),
}Expand description
An error when rewinding.
Variants§
Apply(ApplyError, Vec<u8>)
An error occurred when applying a diff.
The rewound resource is also returned, if you want to use it. The diffs which erred aren’t applied.
ResourceDestroyed(Vec<u8>)
The resource has been destroyed since last commit. Throw away your changes.
The inner byte array is the data supposed to be rewound.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RewindError
impl RefUnwindSafe for RewindError
impl Send for RewindError
impl Sync for RewindError
impl Unpin for RewindError
impl UnwindSafe for RewindError
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