mirror of https://github.com/fdehau/tui-rs
api: expose user error type as part of the draw method error type
parent
54cda04fc4
commit
3b4972aa57
@ -1,11 +1,12 @@
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum Error<B>
|
||||
pub enum Error<B, D>
|
||||
where
|
||||
B: std::error::Error + Send + Sync + 'static,
|
||||
D: std::error::Error + Send + Sync + 'static,
|
||||
{
|
||||
#[error("failed to execute backend operation")]
|
||||
Backend(#[source] B),
|
||||
|
||||
#[error("failed to draw frame")]
|
||||
DrawFrame(#[source] Box<dyn std::error::Error + Send + Sync + 'static>),
|
||||
DrawFrame(#[source] D),
|
||||
}
|
||||
|
Loading…
Reference in New Issue