CodeChain-io / CodeChain-io/remote-trait-object
Make errors handleable
- Lenguaje dominante
- Rust
- Estrellas
- 13
- Forks
- 5
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Most of errors that caused by unexpected behavior of the other side's RTO port will just lead to panic.
However, especially in Foundry context, the other port might have been implemented by 3rd party and could be unreliable.
In this kind of cases, user will just want to handle the error, not panic.
One trivial solution is adding a `Failed` state for the RTO context. The context will be on `Failed` state when it encounters unexpected protocol error, and will be stopped. Users can notice this, and can handle with theirs means.
One drawback of supporting such error handling is the interface of service object; it might be mandatory to all methods to have `Result<>` as return types.
Depends on #76
Depends on #83
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza revisando las issues dependientes #76 y #83; después, inspecciona la interfaz del objeto de servicio y el ciclo de vida del contexto RTO descrito en esta issue. Decide cómo los errores de protocolo inesperados hacen que el contexto cambie de estado y cómo los usuarios observan y gestionan ese fallo; el trabajo estará terminado cuando la interfaz y el comportamiento ante fallos estén definidos e implementados sin panics.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- rust
- Área
- api, distributed-systems
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100