1 2 3 4 5 6 7 8 9 10 11
pub trait RecoverableTransport { type RecoverError: Send; async fn recover(&mut self) -> Result<(), Self::RecoverError>; } pub trait RecoverableError { fn should_try_recover(&self) -> bool; fn is_scope_disposed(&self) -> bool; }