pub enum PtyScreenStateV1 {
Unknown,
NotAgent {
observed_process: String,
},
OperatorGate {
gate: OperatorGateStateV1,
},
Failing {
reason: String,
},
Ready,
}Expand description
Exact mirror of gate4agent_types::PtyScreenState: this crate has no
dependency on gate4agent-types (see the doc comment on
HarnessTerminalControlV1), so the node’s screen-content classification
is duplicated here as its own closed wire enum rather than imported.
hatchery-harness-service is the single place that maps one into the
other, so a variant added to one side without the other fails to compile
there.
Variants§
Implementations§
Source§impl PtyScreenStateV1
impl PtyScreenStateV1
Sourcepub fn admits_blind_write(&self) -> bool
pub fn admits_blind_write(&self) -> bool
Refuses only the three states that carry a finding – mirrors
gate4agent_types::PtyScreenState::admits_blind_write exactly, so a
wire consumer gets the same answer as the node and no call site
open-codes its own reading. See that method for why Unknown admits.
Trait Implementations§
Source§impl Clone for PtyScreenStateV1
impl Clone for PtyScreenStateV1
Source§impl Debug for PtyScreenStateV1
impl Debug for PtyScreenStateV1
Source§impl Default for PtyScreenStateV1
impl Default for PtyScreenStateV1
Source§impl<'de> Deserialize<'de> for PtyScreenStateV1
impl<'de> Deserialize<'de> for PtyScreenStateV1
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 PtyScreenStateV1
Source§impl PartialEq for PtyScreenStateV1
impl PartialEq for PtyScreenStateV1
Source§impl Serialize for PtyScreenStateV1
impl Serialize for PtyScreenStateV1
impl StructuralPartialEq for PtyScreenStateV1
Auto Trait Implementations§
impl Freeze for PtyScreenStateV1
impl RefUnwindSafe for PtyScreenStateV1
impl Send for PtyScreenStateV1
impl Sync for PtyScreenStateV1
impl Unpin for PtyScreenStateV1
impl UnsafeUnpin for PtyScreenStateV1
impl UnwindSafe for PtyScreenStateV1
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