Add comment

This commit is contained in:
Alex 2022-07-22 13:27:56 +02:00
parent f9db9a4b69
commit 50627c2060
Signed by untrusted user: lx
GPG key ID: 0E496D15096376BE

View file

@ -35,6 +35,9 @@ impl<M: Message + 'static> EndpointHandler<M> for () {
// ----
/// This trait should be implemented by an object of your application
/// that can handle a message of type `M`, in the cases where it doesn't
/// care about attached stream in the request nor in the response.
#[async_trait]
pub trait EndpointHandler<M>: Send + Sync
where