phoxal 0.45.2

Phoxal - production-oriented autonomous robot framework: the runtime engine and model (the api contract tree lives in phoxal-api, the typed bus in phoxal-bus).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Encoded query-handler plumbing shared by typed registrations and the runner.

use crate::bus::QueryFailure;

/// A successful server reply: the encoded plain `Resp` body (D62/D1). Identity
/// no longer rides the reply - the request already arrived on `Resp`'s own
/// version-qualified topic key, so the reply needs no separate stamp.
#[derive(Debug)]
pub struct ServerReply {
    /// MessagePack-encoded `Resp` body.
    pub payload: Vec<u8>,
}

/// What a generated server dispatcher returns: a [`ServerReply`] or a structured
/// [`QueryFailure`].
pub type ServerOutcome = std::result::Result<ServerReply, QueryFailure>;