pub enum ForegroundRequirement {
Any,
Agent {
agent_id: AgentId,
},
Shell,
}Expand description
Route proof an effect executor must obtain immediately before a PTY write.
This is carried by the effect rather than inferred by a product shell so local, hosted, and future browser-facing executors enforce the same rule.
Variants§
Any
Explicit terminal text and controls are direct user terminal input.
Agent
Semantic input must target the session’s configured agent.
Shell
Intentional shell syntax may be written only while a shell owns the PTY.
Trait Implementations§
Source§impl Clone for ForegroundRequirement
impl Clone for ForegroundRequirement
Source§impl Debug for ForegroundRequirement
impl Debug for ForegroundRequirement
Source§impl<'de> Deserialize<'de> for ForegroundRequirement
impl<'de> Deserialize<'de> for ForegroundRequirement
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 ForegroundRequirement
Source§impl PartialEq for ForegroundRequirement
impl PartialEq for ForegroundRequirement
Source§impl Serialize for ForegroundRequirement
impl Serialize for ForegroundRequirement
impl StructuralPartialEq for ForegroundRequirement
Auto Trait Implementations§
impl Freeze for ForegroundRequirement
impl RefUnwindSafe for ForegroundRequirement
impl Send for ForegroundRequirement
impl Sync for ForegroundRequirement
impl Unpin for ForegroundRequirement
impl UnsafeUnpin for ForegroundRequirement
impl UnwindSafe for ForegroundRequirement
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