pub enum ParentFrame {
Run(RunSpec),
Cancel,
Message {
text: String,
},
ApprovalReply {
id: String,
approved: bool,
},
}Expand description
Parent → child control/in-band frames.
Variants§
Run(RunSpec)
Cancel
Message
ApprovalReply
Reply to a ChildFrame::ApprovalRequest — the host’s human/policy
decision on a gated tool the worker proxied back (Phase 2 child→parent
approval delegation). id correlates to the request. When
approved == true the worker records the grant locally and proceeds;
false denies the tool.
Implementations§
Trait Implementations§
Source§impl Clone for ParentFrame
impl Clone for ParentFrame
Source§fn clone(&self) -> ParentFrame
fn clone(&self) -> ParentFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParentFrame
impl Debug for ParentFrame
Source§impl<'de> Deserialize<'de> for ParentFrame
impl<'de> Deserialize<'de> for ParentFrame
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
Source§impl PartialEq for ParentFrame
impl PartialEq for ParentFrame
Source§fn eq(&self, other: &ParentFrame) -> bool
fn eq(&self, other: &ParentFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ParentFrame
impl Serialize for ParentFrame
impl StructuralPartialEq for ParentFrame
Auto Trait Implementations§
impl Freeze for ParentFrame
impl RefUnwindSafe for ParentFrame
impl Send for ParentFrame
impl Sync for ParentFrame
impl Unpin for ParentFrame
impl UnsafeUnpin for ParentFrame
impl UnwindSafe for ParentFrame
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