pub struct DaemonResponseFrame {
pub ok: bool,
pub result: Option<String>,
pub error: Option<String>,
pub namespace_mismatch: bool,
pub config_mismatch: bool,
pub served_config_id: Option<String>,
}Expand description
Response frame sent from the daemon back to a client.
Fields§
§ok: bool§result: Option<String>§error: Option<String>§namespace_mismatch: bool§config_mismatch: boolSet when the request’s config_id does not match the daemon’s. Like
namespace_mismatch, this signals the client to fall back to local
dispatch rather than execute under a different runtime/config.
served_config_id: Option<String>The config_id the daemon dispatched under, echoed back so the client
can positively confirm the result came from a matching runtime. A
pre-config_id daemon omits this field (deserializes to None), which
the client treats as a mismatch and falls back to local dispatch — this
closes the upgrade window where a new restricted client could otherwise
trust a still-warm legacy daemon’s broader registry.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DaemonResponseFrame
impl<'de> Deserialize<'de> for DaemonResponseFrame
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DaemonResponseFrame
impl RefUnwindSafe for DaemonResponseFrame
impl Send for DaemonResponseFrame
impl Sync for DaemonResponseFrame
impl Unpin for DaemonResponseFrame
impl UnsafeUnpin for DaemonResponseFrame
impl UnwindSafe for DaemonResponseFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more