pub enum FaultAction {
ErrorBefore(BackendError),
ErrorAfter(BackendError),
Rejected(BackendError),
Indeterminate(BackendError),
Completion(EventState),
}Expand description
Fault behavior applied to one scripted method occurrence.
Variants§
ErrorBefore(BackendError)
Return an error without invoking the wrapped method.
ErrorAfter(BackendError)
Invoke the wrapped method, then replace a successful result with an error.
Resource creation methods release the newly created resource before returning this error.
Rejected(BackendError)
Reject a release or submission before ownership changes.
Indeterminate(BackendError)
Make release or submission ownership indeterminate after the acceptance boundary.
Completion(EventState)
Publish and retain one synthetic terminal completion state.
Trait Implementations§
Source§impl Clone for FaultAction
impl Clone for FaultAction
Source§fn clone(&self) -> FaultAction
fn clone(&self) -> FaultAction
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 Copy for FaultAction
Source§impl Debug for FaultAction
impl Debug for FaultAction
impl Eq for FaultAction
Source§impl PartialEq for FaultAction
impl PartialEq for FaultAction
Source§fn eq(&self, other: &FaultAction) -> bool
fn eq(&self, other: &FaultAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FaultAction
Auto Trait Implementations§
impl Freeze for FaultAction
impl RefUnwindSafe for FaultAction
impl Send for FaultAction
impl Sync for FaultAction
impl Unpin for FaultAction
impl UnsafeUnpin for FaultAction
impl UnwindSafe for FaultAction
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