Sender abstraction has ID and name #39

Merged
muellerr merged 4 commits from feature_sender_abstraction_has_id_and_name into main 2023-02-28 19:12:45 +01:00
Showing only changes of commit c8d6cc5977 - Show all commits

View File

@ -24,24 +24,6 @@ pub enum CustomTmSenderError {
PusError(PusError), PusError(PusError),
} }
// #[derive(Clone)]
// struct EventTmSender {
// sender: std::sync::mpsc::Sender<Vec<u8>>,
// }
//
// impl EcssTmSenderCore for EventTmSender {
// type Error = CustomTmSenderError;
// fn send_tm(&mut self, tm: PusTm) -> Result<(), Self::Error> {
// let mut vec = Vec::new();
// tm.append_to_vec(&mut vec)
// .map_err(|e| CustomTmSenderError::PusError(e))?;
// self.sender
// .send(vec)
// .map_err(CustomTmSenderError::SendError)?;
// Ok(())
// }
// }
#[test] #[test]
fn test_threaded_usage() { fn test_threaded_usage() {
let (event_sender, event_man_receiver) = channel(); let (event_sender, event_man_receiver) = channel();