Skip to content

Commit 5f41764

Browse files
author
GueLaKais
committed
Added comments to clientHandle
Client handle has no comments yet.
1 parent ef8e9f8 commit 5f41764

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rclrs/src/client.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ pub struct ClientHandle {
3030
}
3131

3232
impl ClientHandle {
33+
/// Locks the `rcl_client_t` instance and returns a mutable reference to it.
34+
///
35+
/// # Returns
36+
///
37+
/// A `MutexGuard` holding a mutable reference to the `rcl_client_t` instance.
3338
pub(crate) fn lock(&self) -> MutexGuard<rcl_client_t> {
3439
self.rcl_client.lock().unwrap()
3540
}

0 commit comments

Comments
 (0)