pub enum FailpointAction {
Off,
Error(String),
Panic(String),
Abort,
Sleep(Duration),
}Expand description
Actions a failpoint can take when triggered.
Variants§
Off
No-op (default).
Error(String)
Return an error with the given message.
Panic(String)
Panic with the given message.
Abort
Abort the process.
Sleep(Duration)
Sleep for the given duration.
Trait Implementations§
Source§impl Clone for FailpointAction
impl Clone for FailpointAction
Source§fn clone(&self) -> FailpointAction
fn clone(&self) -> FailpointAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FailpointAction
impl RefUnwindSafe for FailpointAction
impl Send for FailpointAction
impl Sync for FailpointAction
impl Unpin for FailpointAction
impl UnsafeUnpin for FailpointAction
impl UnwindSafe for FailpointAction
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