We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f503c84 commit ed78b35Copy full SHA for ed78b35
rclrs/src/timer.rs
@@ -123,7 +123,7 @@ impl Timer {
123
}
124
125
/// Executes the callback of the timer (this is triggered by the executor or the node directly)
126
- pub fn call(&mut self) -> Result<(), RclrsError>
+ pub fn call(&self) -> Result<(), RclrsError>
127
{
128
let mut rcl_timer = self.rcl_timer.lock().unwrap();
129
to_rclrs_result(unsafe {rcl_timer_call(&mut *rcl_timer)})
@@ -146,7 +146,7 @@ impl Timer {
146
})
147
148
149
- pub(crate) fn execute(&self) -> Result<(), RclrsError>
+ pub/* (crate)*/ fn execute(&self) -> Result<(), RclrsError>
150
151
if self.is_ready()?
152
0 commit comments