Add comment
This commit is contained in:
parent
f9db9a4b69
commit
50627c2060
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue