Skip to main content

photon_runtime/
lib.rs

1//! `Photon` runtime builder and process-wide configuration — **Integrating the host**.
2
3#![cfg(feature = "runtime")]
4#![cfg_attr(test, allow(clippy::unwrap_used, clippy::expect_used))]
5
6pub mod admin;
7
8mod builder;
9mod executor;
10mod photon;
11pub mod runtime;
12mod subsystem_remote_url;
13
14pub use admin::{
15    collect_admin_snapshot, AdminBackendSummary, AdminCheckpointSummary, AdminHandlerSummary,
16    AdminSnapshot, AdminTopicSummary,
17};
18pub use builder::PhotonBuilder;
19pub use executor::ExecutorController;
20pub use photon::{configure, default, Photon, PhotonRuntimeState};
21pub use subsystem_remote_url::resolve_photon_remote_base_url;
22
23pub use photon_backend::{
24    BackendCapabilities, BackendContext, EmbeddedBackend, Envelope, Event, GenericPhotonBackend,
25    GroupOpts, HandlerCtx, HandlerDescriptor, HandlerRegistry, InProcStoragePort, PhotonBackend,
26    PhotonError, Result, StoragePort, SubscribeOpts, Subscription, SubscriptionHandle,
27    SubscriptionMode, TopicDescriptor, TopicRegistry, TransportCrypto,
28};