aboutsummaryrefslogtreecommitdiff
path: root/src/message.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-07-22 14:45:28 +0200
committerAlex Auvolat <alex@adnab.me>2022-07-22 14:45:28 +0200
commitcbc21e40acfc420a3e452a1fd488c6a96694b0f2 (patch)
tree99ba78dc0786f453056aa74e9a867969b96cc064 /src/message.rs
parent482566929385fab18300d205a89d0e23d977855b (diff)
downloadnetapp-cbc21e40acfc420a3e452a1fd488c6a96694b0f2.tar.gz
netapp-cbc21e40acfc420a3e452a1fd488c6a96694b0f2.zip
Impose static lifetime on message and response
Diffstat (limited to 'src/message.rs')
-rw-r--r--src/message.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message.rs b/src/message.rs
index 629992d..ff9861c 100644
--- a/src/message.rs
+++ b/src/message.rs
@@ -42,8 +42,8 @@ pub const PRIO_SECONDARY: RequestPriority = 0x01;
/// This trait should be implemented by all messages your application
/// wants to handle
-pub trait Message: Serialize + for<'de> Deserialize<'de> + Send + Sync {
- type Response: Serialize + for<'de> Deserialize<'de> + Send + Sync;
+pub trait Message: Serialize + for<'de> Deserialize<'de> + Send + Sync + 'static {
+ type Response: Serialize + for<'de> Deserialize<'de> + Send + Sync + 'static;
}
// ----