aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-07-22 13:27:56 +0200
committerAlex Auvolat <alex@adnab.me>2022-07-22 13:27:56 +0200
commit50627c206043edf5ce8755893944a6f17a54fb85 (patch)
tree7b644d5aa14f728b3a7ff0d585dffafcd55144cd /src
parentf9db9a4b696569bbc56c40b9170320307ebcdd81 (diff)
downloadnetapp-50627c206043edf5ce8755893944a6f17a54fb85.tar.gz
netapp-50627c206043edf5ce8755893944a6f17a54fb85.zip
Add comment
Diffstat (limited to 'src')
-rw-r--r--src/endpoint.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/endpoint.rs b/src/endpoint.rs
index 7088879..31500aa 100644
--- a/src/endpoint.rs
+++ b/src/endpoint.rs
@@ -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