kanidmd_lib/
status.rs

1//! An actor that shows the servers current status and statistics. (TODO).
2
3use uuid::Uuid;
4
5// TODO: this should *totally* be running the OTEL metrics collector
6
7pub struct StatusRequestEvent {
8    pub eventid: Uuid,
9}
10
11pub struct StatusActor {}
12
13impl StatusActor {
14    pub fn start() -> &'static Self {
15        let x = Box::new(StatusActor {});
16
17        let x_ptr = Box::into_raw(x);
18        unsafe { &(*x_ptr) }
19    }
20
21    pub async fn handle_request(&self, _event: StatusRequestEvent) -> bool {
22        trace!("status handler complete");
23        true
24    }
25}