(stop: &StopState)
| 193 | } |
| 194 | |
| 195 | fn stop_state_proto(stop: &StopState) -> PbStopState { |
| 196 | PbStopState { |
| 197 | cause: match stop.cause { |
| 198 | StopCause::UserRequested => PbStopCause::UserRequested, |
| 199 | StopCause::LeaseExpired => PbStopCause::LeaseExpired, |
| 200 | StopCause::ProcessExited => PbStopCause::ProcessExited, |
| 201 | StopCause::HookFailure => PbStopCause::HookFailure, |
| 202 | StopCause::SystemShutdown => PbStopCause::SystemShutdown, |
| 203 | StopCause::Abandoned => PbStopCause::Abandoned, |
| 204 | } as i32, |
| 205 | observed_at: Some(timestamp(stop.observed_at)), |
| 206 | last_event_seq: stop.last_event_seq, |
| 207 | resumable: stop.resumable, |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | fn checkpoint_source_proto(source: &ProvenanceCheckpointSource) -> CheckpointSource { |
| 212 | CheckpointSource { |
no test coverage detected