pub enum HarnessMcpLocalReplyV1 {
Ok {
response: HarnessMcpOpaquePayloadV1,
},
Rejected {
reason: HarnessMcpRejectReasonV1,
},
}Expand description
The proxy’s terminal reply to a local session’s harness-MCP call.
Ok’s response is opaque (see HarnessMcpOpaquePayloadV1) – only the
harness that computed it and the local helper program that decodes it
know its shape. Rejected carries this crate’s own coarse reason, used
uniformly whether the node decided it locally (an unmatched local token,
a caller that is not a descendant of the provider process, a deadline
that expired waiting on the harness) or the harness decided it and
relayed the reason back over NodeRequest::RejectHarnessMcpCall – in
neither case does the harness’s own richer HarnessReadHostErrorV1 ever
need to cross into this crate.
Variants§
Implementations§
Source§impl HarnessMcpLocalReplyV1
impl HarnessMcpLocalReplyV1
pub fn validate(&self) -> Result<(), HarnessMcpContractError>
Trait Implementations§
Source§impl Clone for HarnessMcpLocalReplyV1
impl Clone for HarnessMcpLocalReplyV1
Source§impl Debug for HarnessMcpLocalReplyV1
impl Debug for HarnessMcpLocalReplyV1
Source§impl<'de> Deserialize<'de> for HarnessMcpLocalReplyV1
impl<'de> Deserialize<'de> for HarnessMcpLocalReplyV1
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
impl Eq for HarnessMcpLocalReplyV1
Source§impl PartialEq for HarnessMcpLocalReplyV1
impl PartialEq for HarnessMcpLocalReplyV1
Source§impl Serialize for HarnessMcpLocalReplyV1
impl Serialize for HarnessMcpLocalReplyV1
impl StructuralPartialEq for HarnessMcpLocalReplyV1
Auto Trait Implementations§
impl Freeze for HarnessMcpLocalReplyV1
impl RefUnwindSafe for HarnessMcpLocalReplyV1
impl Send for HarnessMcpLocalReplyV1
impl Sync for HarnessMcpLocalReplyV1
impl Unpin for HarnessMcpLocalReplyV1
impl UnsafeUnpin for HarnessMcpLocalReplyV1
impl UnwindSafe for HarnessMcpLocalReplyV1
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