MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / to_journal_stop_cause

Function to_journal_stop_cause

libatomic/src/daemon/journal_sink.rs:62–71  ·  view source on GitHub ↗
(cause: StopCause)

Source from the content-addressed store, hash-verified

60}
61
62fn 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
73fn to_journal_turn_status(turn: StoredProvenanceTurn) -> JournalTurnStatus {
74 let lifecycle = match turn.state {

Callers 1

to_journal_turn_statusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected