Skip to main content

hyprstream_rpc/service/
mod.rs

1//! Service-side RPC infrastructure.
2//!
3//! This module provides:
4//! - `RequestService` - RPC service trait
5//! - `EnvelopeContext` - Verified request context passed to handlers
6//! - `ServiceHandle` - Handle for managing running services
7//! - `RpcService`, `RpcHandler` - Lower-level RPC traits
8//!
9//! Spawner, factory, and manager have moved to the `hyprstream-service` crate.
10//! Metadata types remain here (used by proc macro codegen across all crates).
11
12pub mod body;
13pub mod dispatch;
14pub mod doc;
15pub mod metadata;
16pub mod serve;
17pub mod spawnable;
18mod svc;
19mod traits;
20
21pub use body::DecodedRequestBody;
22/// Transport-neutral request dispatch core (#148) — shared by all front-ends.
23pub use dispatch::process_request;
24pub use doc::DocFs;
25pub use metadata::{
26    MethodMeta, ParamMeta, SchemaMetadataFn, ScopedClientTreeNode, ScopedSchemaMetadataFn,
27};
28pub use spawnable::Spawnable;
29pub use svc::{
30    AuthorizeFn, Continuation, EnvelopeContext, QuicLoopConfig, RequestService, ServiceHandle,
31};
32pub use traits::{RpcHandler, RpcRequest, RpcService};