(cause: StopCause)
| 60 | } |
| 61 | |
| 62 | fn to_journal_stop_cause(cause: StopCause) -> JournalStopCause { |
| 63 | match cause { |
| 64 | StopCause::UserRequested => JournalStopCause::UserRequested, |
| 65 | StopCause::LeaseExpired => JournalStopCause::LeaseExpired, |
| 66 | StopCause::ProcessExited => JournalStopCause::ProcessExited, |
| 67 | StopCause::HookFailure => JournalStopCause::HookFailure, |
| 68 | StopCause::SystemShutdown => JournalStopCause::SystemShutdown, |
| 69 | StopCause::Abandoned => JournalStopCause::Abandoned, |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | fn to_journal_turn_status(turn: StoredProvenanceTurn) -> JournalTurnStatus { |
| 74 | let lifecycle = match turn.state { |
no outgoing calls
no test coverage detected