CFDP destination handler #62

Merged
muellerr merged 49 commits from cfdp-state-machines into main 2023-09-21 18:47:07 +02:00
2 changed files with 4 additions and 7 deletions
Showing only changes of commit ffcab9592e - Show all commits
satrs-core/src/cfdp

@ -61,16 +61,15 @@ pub trait CheckTimerCreator {
#[cfg(feature = "std")]
pub struct StdCheckTimer {
expiry_time_seconds: u64,
start_time: std::time::Instant
start_time: std::time::Instant,
}
#[cfg(feature = "std")]
impl StdCheckTimer {
pub fn new(expiry_time_seconds: u64) -> Self {
Self {
expiry_time_seconds,
start_time: std::time::Instant::now()
start_time: std::time::Instant::now(),
}
}
}

@ -6,11 +6,9 @@ pub struct SourceHandler {
impl SourceHandler {
pub fn new(id: impl Into<UnsignedByteField>) -> Self {
Self { id }
Self { id: id.into() }
}
}
#[cfg(test)]
mod tests {
}
mod tests {}