Trait quic_rpc::RpcError

source ·
pub trait RpcError: Debug + Display + Send + Sync + Unpin + 'static { }
Expand description

Requirements for an internal error

All errors have to be Send, Sync and ’static so they can be sent across threads. They also have to be Debug and Display so they can be logged.

We don’t require them to implement std::error::Error so we can use anyhow::Error as an error type.

Implementors§

source§

impl<T> RpcError for T
where T: Debug + Display + Send + Sync + Unpin + 'static,