pub enum SuperviseError<E> {
TooManyRestarts {
max_restarts: u32,
window_secs: u64,
last_error: E,
},
}Expand description
Error returned by supervise when the policy refuses another
restart.
Variants§
TooManyRestarts
Restart policy hit max_restarts inside window. Carries the
final inner error that triggered the abandoned restart, so the
caller does not lose the root cause — the C ca-gateway master
loop likewise reports the last child-exit reason when it gives
up (gateway.cc restart loop).
Trait Implementations§
Source§impl<E: Debug> Debug for SuperviseError<E>
impl<E: Debug> Debug for SuperviseError<E>
Source§impl<E: Display> Display for SuperviseError<E>
impl<E: Display> Display for SuperviseError<E>
Source§impl<E: Display + Debug> Error for SuperviseError<E>
impl<E: Display + Debug> Error for SuperviseError<E>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl<E> Freeze for SuperviseError<E>where
E: Freeze,
impl<E> RefUnwindSafe for SuperviseError<E>where
E: RefUnwindSafe,
impl<E> Send for SuperviseError<E>where
E: Send,
impl<E> Sync for SuperviseError<E>where
E: Sync,
impl<E> Unpin for SuperviseError<E>where
E: Unpin,
impl<E> UnsafeUnpin for SuperviseError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for SuperviseError<E>where
E: UnwindSafe,
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