Commit 46cbeaf
committed
Extend SubscriptionCallback trait to ReadOnlyLoanedMessage (#266)
This was not a straightforward extension because
1. ReadOnlyLoanedMessage has a lifetime
2. The take_loaned_message() method was restricted to Subscription<T: RmwMessage>, i.e. not available
for subscriptions on idiomatic messages.
This has been fixed and now the method is implemented for Subscription<T: Message> like the other
`take*` methods – though you still will get an RMW-native loaned message even if T is the idiomatic
message type, because idiomatic message types can never be loaned.1 parent f2f00e9 commit 46cbeaf
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments