pub enum ChaosResult {
Success,
Error {
status_code: u16,
message: String,
},
Delay {
delay_ms: u64,
},
Timeout {
timeout_ms: u64,
},
}
Expand description
Result of chaos processing
Variants§
Success
No chaos effect - request should proceed normally
Error
Inject an error response
Delay
Inject a delay
Timeout
Inject a timeout
Trait Implementations§
Source§impl Clone for ChaosResult
impl Clone for ChaosResult
Source§fn clone(&self) -> ChaosResult
fn clone(&self) -> ChaosResult
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 ChaosResult
impl RefUnwindSafe for ChaosResult
impl Send for ChaosResult
impl Sync for ChaosResult
impl Unpin for ChaosResult
impl UnwindSafe for ChaosResult
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