File tree 3 files changed +4
-4
lines changed
mavlink-core/src/async_connection
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ pub struct AsyncFileConnection {
36
36
}
37
37
38
38
#[ async_trait:: async_trait]
39
- impl < M : Message + Sync > AsyncMavConnection < M > for AsyncFileConnection {
39
+ impl < M : Message + Sync + Send > AsyncMavConnection < M > for AsyncFileConnection {
40
40
async fn recv ( & self ) -> Result < ( MavHeader , M ) , crate :: error:: MessageReadError > {
41
41
let mut file = self . file . lock ( ) . await ;
42
42
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use crate::SigningConfig;
15
15
16
16
/// An async MAVLink connection
17
17
#[ async_trait:: async_trait]
18
- pub trait AsyncMavConnection < M : Message + Sync > {
18
+ pub trait AsyncMavConnection < M : Message + Sync + Send > {
19
19
/// Receive a mavlink message.
20
20
///
21
21
/// Wait until a valid frame is received, ignoring invalid messages.
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ use crate::{
17
17
18
18
/// TCP MAVLink connection
19
19
20
- pub async fn select_protocol < M : Message + Sync > (
20
+ pub async fn select_protocol < M : Message + Sync + Send > (
21
21
address : & str ,
22
22
) -> io:: Result < Box < dyn AsyncMavConnection < M > + Sync + Send > > {
23
23
let connection = if let Some ( address) = address. strip_prefix ( "tcpout:" ) {
@@ -97,7 +97,7 @@ struct TcpWrite {
97
97
}
98
98
99
99
#[ async_trait:: async_trait]
100
- impl < M : Message + Sync > AsyncMavConnection < M > for TcpConnection {
100
+ impl < M : Message + Sync + Send > AsyncMavConnection < M > for TcpConnection {
101
101
async fn recv ( & self ) -> Result < ( MavHeader , M ) , crate :: error:: MessageReadError > {
102
102
let mut reader = self . reader . lock ( ) . await ;
103
103
#[ cfg( not( feature = "signing" ) ) ]
You can’t perform that action at this time.
0 commit comments