@@ -117,7 +117,7 @@ impl Node {
117
117
/// # Ok::<(), RclrsError>(())
118
118
/// ```
119
119
pub fn name ( & self ) -> String {
120
- self . run_string_getter ( rcl_node_get_name)
120
+ self . call_string_getter ( rcl_node_get_name)
121
121
}
122
122
123
123
/// Returns the namespace of the node.
@@ -143,7 +143,7 @@ impl Node {
143
143
/// # Ok::<(), RclrsError>(())
144
144
/// ```
145
145
pub fn namespace ( & self ) -> String {
146
- self . run_string_getter ( rcl_node_get_namespace)
146
+ self . call_string_getter ( rcl_node_get_namespace)
147
147
}
148
148
149
149
/// Returns the fully qualified name of the node.
@@ -163,15 +163,15 @@ impl Node {
163
163
/// # Ok::<(), RclrsError>(())
164
164
/// ```
165
165
pub fn fully_qualified_name ( & self ) -> String {
166
- self . run_string_getter ( rcl_node_get_fully_qualified_name)
166
+ self . call_string_getter ( rcl_node_get_fully_qualified_name)
167
167
}
168
168
169
169
// Helper for name(), namespace(), fully_qualified_name()
170
- fn run_string_getter (
170
+ fn call_string_getter (
171
171
& self ,
172
172
getter : unsafe extern "C" fn ( * const rcl_node_t ) -> * const c_char ,
173
173
) -> String {
174
- unsafe { run_string_getter_with_handle ( & * self . handle . lock ( ) , getter) }
174
+ unsafe { call_string_getter_with_handle ( & * self . handle . lock ( ) , getter) }
175
175
}
176
176
177
177
/// Creates a [`Publisher`][1].
@@ -270,11 +270,11 @@ impl Node {
270
270
}
271
271
}
272
272
273
- // Helper used to implement run_string_getter (), but also used to get the FQN in the Node::new()
274
- // function, which is why it's not merged into Node::run_string_getter ().
273
+ // Helper used to implement call_string_getter (), but also used to get the FQN in the Node::new()
274
+ // function, which is why it's not merged into Node::call_string_getter ().
275
275
// This function is unsafe since it's possible to pass in an rcl_node_t with dangling
276
276
// pointers etc.
277
- unsafe fn run_string_getter_with_handle (
277
+ unsafe fn call_string_getter_with_handle (
278
278
rcl_node : & rcl_node_t ,
279
279
getter : unsafe extern "C" fn ( * const rcl_node_t ) -> * const c_char ,
280
280
) -> String {
0 commit comments