powhttp_sdk/runtime/handlers/
mod.rs1use ulid::Ulid;
2
3pub(crate) mod context_menu;
4pub(crate) mod inspector;
5pub(crate) mod overview;
6pub(crate) mod proxy_server;
7
8#[derive(Debug)]
9struct HandlerNotFound(String);
10
11impl std::fmt::Display for HandlerNotFound {
12 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
13 write!(f, "no handler registered for '{}'", self.0)
14 }
15}
16
17impl std::error::Error for HandlerNotFound {}
18
19#[derive(Debug, Clone, PartialEq, Eq, Hash)]
21pub struct SingleEntryContext {
22 pub session_id: Ulid,
23 pub entry_id: Ulid,
24}
25
26#[derive(Debug, Clone, PartialEq, Eq)]
28pub struct MultiEntryContext {
29 pub session_id: Ulid,
30 pub entry_ids: Vec<Ulid>,
31}