zagens_runtime_api/
state.rs1pub trait RuntimeApiAuthState: Clone + Send + Sync + 'static {
5 fn runtime_token(&self) -> Option<&str>;
6}
7
8pub trait RuntimeApiProbeState: Clone + Send + Sync + 'static {
10 fn process_started_at_ms(&self) -> u128;
11
12 fn token_fingerprint(&self) -> &str;
13
14 fn service_version(&self) -> &'static str;
15}
16
17pub trait RuntimeApiHostState: RuntimeApiAuthState + RuntimeApiProbeState {}
19
20impl<T> RuntimeApiHostState for T where T: RuntimeApiAuthState + RuntimeApiProbeState {}