pub enum UnwindError {
ResourceDestroyed(Vec<u8>),
Apply(ApplyError, Vec<u8>),
}Expand description
Error during Unwinder operations.
Variants§
ResourceDestroyed(Vec<u8>)
The resource has previously been destroyed.
The returned byte array contains the unchanged data passed to the function.
Apply(ApplyError, Vec<u8>)
An error during an application of a section.
The rewound resource is also returned, if you want to use it. The diffs which erred aren’t applied.
Implementations§
source§impl UnwindError
impl UnwindError
sourcepub fn ignore_apply_err<E>(
self,
resource_destroyed_err: E,
) -> Result<Vec<u8>, E>
pub fn ignore_apply_err<E>( self, resource_destroyed_err: E, ) -> Result<Vec<u8>, E>
Get the data from Self::Apply or return resource_destroyed_err.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnwindError
impl RefUnwindSafe for UnwindError
impl Send for UnwindError
impl Sync for UnwindError
impl Unpin for UnwindError
impl UnwindSafe for UnwindError
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