Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions rclrs/src/publisher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,11 @@ where
msg_ptr: msg_ptr as *mut T,
})
}

/// Returns true if message loans are possible, false otherwise.
pub fn can_loan_messages(&self) -> bool {
unsafe { rcl_publisher_can_loan_messages(&*self.handle.rcl_publisher.lock().unwrap()) }
}
}

/// Convenience trait for [`Publisher::publish`].
Expand Down
Loading