File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -241,6 +241,24 @@ impl QoSProfile {
241241 self . durability = QoSDurabilityPolicy :: TransientLocal ;
242242 self
243243 }
244+
245+ /// Sets the QoS profile deadline to the specified `Duration`.
246+ pub fn deadline ( mut self , deadline : Duration ) -> Self {
247+ self . deadline = QoSDuration :: Custom ( deadline) ;
248+ self
249+ }
250+
251+ /// Sets the QoS profile liveliness lease duration to the specified `Duration`.
252+ pub fn liveliness_lease_duration ( mut self , lease_duration : Duration ) -> Self {
253+ self . liveliness_lease_duration = QoSDuration :: Custom ( lease_duration) ;
254+ self
255+ }
256+
257+ /// Sets the QoS profile lifespan to the specified `Duration`.
258+ pub fn lifespan ( mut self , lifespan : Duration ) -> Self {
259+ self . lifespan = QoSDuration :: Custom ( lifespan) ;
260+ self
261+ }
244262}
245263
246264impl From < QoSHistoryPolicy > for rmw_qos_history_policy_t {
You can’t perform that action at this time.
0 commit comments