Added missing derives from publisher handle

This commit is contained in:
Martin Dahl 2020-04-29 17:24:49 +02:00
parent 903b7a5342
commit a124c21e6d
2 changed files with 3 additions and 2 deletions

View File

@ -46,8 +46,7 @@ fn main() -> Result<(), Error> {
// run for 10 seconds
let mut count = 0;
// while count < 100 {
loop {
while count < 100 {
node.spin_once(std::time::Duration::from_millis(100));
count += 1;
}

View File

@ -350,6 +350,7 @@ where
unsafe impl<T> Send for Publisher<T> where T: WrappedTypesupport {}
use std::sync::{Arc, Mutex, Weak};
#[derive(Debug, Clone)]
pub struct Publisher<T>
where
T: WrappedTypesupport,
@ -359,6 +360,7 @@ where
}
unsafe impl Send for PublisherUntyped {}
#[derive(Debug, Clone)]
pub struct PublisherUntyped {
handle: Weak<rcl_publisher_t>,
type_: String,