Enum agde::event::UnwindError
source · 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
.