impl ReceivesTc for TC UDP server

This commit is contained in:
Robin Müller 2022-12-21 20:02:29 +01:00
parent 78c54cf617
commit 0b0a929a11
No known key found for this signature in database
GPG Key ID: BE6480244DFE612C
2 changed files with 8 additions and 2 deletions

View File

@ -89,6 +89,14 @@ impl<E: PartialEq> PartialEq for ReceiveResult<E> {
impl<E: Eq + PartialEq> Eq for ReceiveResult<E> {} impl<E: Eq + PartialEq> Eq for ReceiveResult<E> {}
impl<E: 'static> ReceivesTc for UdpTcServer<E> {
type Error = E;
fn pass_tc(&mut self, tc_raw: &[u8]) -> Result<(), Self::Error> {
self.tc_receiver.pass_tc(tc_raw)
}
}
impl<E: 'static> UdpTcServer<E> { impl<E: 'static> UdpTcServer<E> {
pub fn new<A: ToSocketAddrs>( pub fn new<A: ToSocketAddrs>(
addr: A, addr: A,

View File

@ -44,8 +44,6 @@ struct UdpTmtcServer {
tm_store: SharedPool, tm_store: SharedPool,
} }
unsafe impl Send for UdpTmtcServer {}
#[derive(Clone)] #[derive(Clone)]
struct EventTmSender { struct EventTmSender {
store_helper: TmStore, store_helper: TmStore,