ros2_interfaces_rolling/topic_tools_interfaces/srv/
mux_select.rs

1use serde::{Deserialize, Serialize};
2
3
4#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
5pub struct MuxSelectRequest {
6    pub topic: ::std::string::String,
7}
8
9impl Default for MuxSelectRequest {
10    fn default() -> Self {
11        MuxSelectRequest {
12            topic: ::std::string::String::new(),
13        }
14    }
15}
16
17impl ros2_client::Message for MuxSelectRequest {}
18
19
20
21#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
22pub struct MuxSelectResponse {
23    pub prev_topic: ::std::string::String,
24    pub success: bool,
25}
26
27impl Default for MuxSelectResponse {
28    fn default() -> Self {
29        MuxSelectResponse {
30            prev_topic: ::std::string::String::new(),
31            success: false,
32        }
33    }
34}
35
36impl ros2_client::Message for MuxSelectResponse {}
37
38
39pub struct MuxSelect;
40impl ros2_client::Service for MuxSelect {
41    type Request = MuxSelectRequest;
42    type Response = MuxSelectResponse;
43
44    fn request_type_name(&self) -> &str { "MuxSelectRequest" }
45    fn response_type_name(&self) -> &str { "MuxSelectResponse" }
46}