pub enum FrameAdmissionDirective {
Allow,
Block {
reason: String,
},
}Expand description
Neutral directive a client can attach to a render request to ask the harness to admit, block, or request continuation of the next lifecycle moment.
This vocabulary is intentionally policy-free: it carries the
transport intent (allow/block) and a free-form reason the harness
surfaces to the model. Clients decide why to block; Lifeloop only
transports the directive.
Variants§
Allow
Default: do nothing, let the harness proceed.
Block
Ask the harness to block the next input/turn and surface reason
to the model. On harnesses where block means “request a
continuation prompt” (Codex Stop), the same shape applies.
Implementations§
Trait Implementations§
Source§impl Clone for FrameAdmissionDirective
impl Clone for FrameAdmissionDirective
Source§fn clone(&self) -> FrameAdmissionDirective
fn clone(&self) -> FrameAdmissionDirective
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 FrameAdmissionDirective
impl Debug for FrameAdmissionDirective
Source§impl<'de> Deserialize<'de> for FrameAdmissionDirective
impl<'de> Deserialize<'de> for FrameAdmissionDirective
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 FrameAdmissionDirective
impl PartialEq for FrameAdmissionDirective
Source§fn eq(&self, other: &FrameAdmissionDirective) -> bool
fn eq(&self, other: &FrameAdmissionDirective) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FrameAdmissionDirective
impl Serialize for FrameAdmissionDirective
impl Eq for FrameAdmissionDirective
impl StructuralPartialEq for FrameAdmissionDirective
Auto Trait Implementations§
impl Freeze for FrameAdmissionDirective
impl RefUnwindSafe for FrameAdmissionDirective
impl Send for FrameAdmissionDirective
impl Sync for FrameAdmissionDirective
impl Unpin for FrameAdmissionDirective
impl UnsafeUnpin for FrameAdmissionDirective
impl UnwindSafe for FrameAdmissionDirective
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.