zagens_runtime/runtime_api/
state.rs1use zagens_runtime_api::{RuntimeApiAuthState, RuntimeApiProbeState};
4
5use super::RuntimeApiState;
6
7impl RuntimeApiAuthState for RuntimeApiState {
8 fn runtime_token(&self) -> Option<&str> {
9 self.runtime_token.as_deref()
10 }
11}
12
13impl RuntimeApiProbeState for RuntimeApiState {
14 fn process_started_at_ms(&self) -> u128 {
15 self.process_started_at_ms
16 }
17
18 fn token_fingerprint(&self) -> &str {
19 self.token_fingerprint.as_ref()
20 }
21
22 fn service_version(&self) -> &'static str {
23 env!("CARGO_PKG_VERSION")
24 }
25}