pub enum ErrorPattern {
ContinuousFailure(u32),
PeriodicError(String),
BurstError {
threshold: u32,
time_window: Duration,
},
}Expand description
错误发生模式
Variants§
Auto Trait Implementations§
impl Freeze for ErrorPattern
impl RefUnwindSafe for ErrorPattern
impl Send for ErrorPattern
impl Sync for ErrorPattern
impl Unpin for ErrorPattern
impl UnsafeUnpin for ErrorPattern
impl UnwindSafe for ErrorPattern
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