1pub mod access;
12pub mod app;
13pub mod cascade;
14pub mod config;
15pub mod cycles;
16pub mod env;
17pub mod error;
18pub mod ic;
19pub mod icrc;
20pub mod icts;
21pub mod instrumentation;
22pub mod lifecycle;
23pub mod log;
24pub mod memory;
25pub mod metrics;
26pub mod placement;
27pub mod pool;
28pub mod rpc;
29pub mod state;
30pub mod timer;
31pub mod topology;
32pub mod wasm;
33
34#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
39pub struct EndpointCall {
40 pub endpoint: EndpointId,
41 pub kind: EndpointCallKind,
42}
43
44#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
49pub struct EndpointId {
50 pub name: &'static str,
51}
52
53impl EndpointId {
54 #[must_use]
55 pub const fn new(name: &'static str) -> Self {
56 Self { name }
57 }
58}
59
60#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
65pub enum EndpointCallKind {
66 Query,
67 QueryComposite,
68 Update,
69}