mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-08-25 04:44:12 +02:00
24 lines
856 B
Rust
24 lines
856 B
Rust
//! Command handlers for the RPC surface, written against [`Host`] instead of
|
|
//! any particular host.
|
|
//!
|
|
//! `yaak_rpc_schema` declares what each command is called and what it takes
|
|
//! and returns; this crate is where the bodies live. Every handler has the
|
|
//! shape the router wants — `async fn(host, Req) -> Result<Res>` — so a host
|
|
//! registers one with a one-line adapter (or none at all), and never
|
|
//! redeclares a command.
|
|
//!
|
|
//! Not every command is here yet. Handlers move in as they are freed of
|
|
//! host-specific types; the ones that stay behind are the ones only a desktop
|
|
//! can serve (native windows, the updater, dialogs) or that still lean on it.
|
|
|
|
pub mod data;
|
|
pub mod encryption;
|
|
pub mod error;
|
|
pub mod host;
|
|
pub mod models;
|
|
pub mod plugins;
|
|
pub mod responses;
|
|
|
|
pub use error::{Error, Result};
|
|
pub use host::{Host, PluginHost};
|