incredible, but it seems to work..
Some checks failed
Rust/sat-rs/pipeline/pr-main There was a failure building this commit

This commit is contained in:
2024-03-22 18:21:49 +01:00
parent 993b82cd07
commit b7ab1d5ea7
11 changed files with 288 additions and 28 deletions

View File

@ -60,7 +60,7 @@ impl<'tm> From<PusTmCreator<'tm>> for PusTmWrapper<'tm> {
}
}
#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum EcssTmtcError {
Store(StoreError),
ByteConversion(ByteConversionError),
@ -658,6 +658,7 @@ pub mod std_mod {
use spacepackets::ecss::WritablePusPacket;
use spacepackets::time::StdTimestampError;
use spacepackets::ByteConversionError;
use std::println;
use std::string::String;
use std::sync::mpsc;
use std::sync::mpsc::TryRecvError;

View File

@ -10,7 +10,7 @@ use crate::ComponentId;
pub type ChannelId = u32;
/// Generic error type for sending something via a message queue.
#[derive(Debug, Copy, Clone)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum GenericSendError {
RxDisconnected,
QueueFull(Option<u32>),
@ -37,7 +37,7 @@ impl Display for GenericSendError {
impl Error for GenericSendError {}
/// Generic error type for sending something via a message queue.
#[derive(Debug, Copy, Clone)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum GenericReceiveError {
Empty,
TxDisconnected(Option<ComponentId>),

View File

@ -31,7 +31,7 @@ pub struct TargetAndApidId {
}
impl TargetAndApidId {
pub fn new(apid: Apid, target: u32) -> Self {
pub const fn new(apid: Apid, target: u32) -> Self {
Self { apid, target }
}