remove some methods

This commit is contained in:
Robin Müller 2025-05-06 16:19:36 +02:00
parent a650773566
commit 240868d1ce
Signed by: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -228,7 +228,7 @@ pub struct VerificationToken<STATE> {
} }
impl<STATE> VerificationToken<STATE> { impl<STATE> VerificationToken<STATE> {
fn new(req_id: RequestId) -> VerificationToken<TcStateNone> { pub fn new(req_id: RequestId) -> VerificationToken<TcStateNone> {
VerificationToken { VerificationToken {
state: PhantomData, state: PhantomData,
request_id: req_id, request_id: req_id,
@ -518,17 +518,11 @@ impl VerificationReportCreator {
/// Initialize verification handling by passing a TC reference. This returns a token required /// Initialize verification handling by passing a TC reference. This returns a token required
/// to call the acceptance functions /// to call the acceptance functions
pub fn add_tc( pub fn read_request_id_from_tc(
&mut self, &mut self,
pus_tc: &(impl CcsdsPacket + IsPusTelecommand), pus_tc: &(impl CcsdsPacket + IsPusTelecommand),
) -> VerificationToken<TcStateNone> { ) -> RequestId {
self.add_tc_with_req_id(RequestId::new(pus_tc)) RequestId::new(pus_tc)
}
/// Same as [Self::add_tc] but pass a request ID instead of the direct telecommand.
/// This can be useful if the executing thread does not have full access to the telecommand.
pub fn add_tc_with_req_id(&mut self, req_id: RequestId) -> VerificationToken<TcStateNone> {
VerificationToken::<TcStateNone>::new(req_id)
} }
fn success_verification_no_step<'time, 'src_data>( fn success_verification_no_step<'time, 'src_data>(