eurosim-obsw/src/requests.rs
lkoester e67835733f idk
2023-03-09 09:54:21 +01:00

16 lines
484 B
Rust

use crate::action::ActionRequest;
use satrs_core::hk::HkRequest;
use satrs_core::mode::ModeRequest;
use satrs_core::pus::verification::{TcStateAccepted, VerificationToken};
#[derive(Copy, Clone, Eq, PartialEq, Debug)]
#[non_exhaustive]
pub enum Request {
HkRequest(HkRequest),
ModeRequest(ModeRequest),
ActionRequest(ActionRequest),
}
#[derive(Copy, Clone, Eq, PartialEq, Debug)]
pub struct RequestWithToken(pub Request, pub Option<VerificationToken<TcStateAccepted>>);