pub struct TerminalBridge { /* private fields */ }Expand description
Wraps an AI6-discovered terminal provider in the object handle passed to AgentHandlers.
Implementations§
Source§impl TerminalBridge
impl TerminalBridge
Sourcepub fn agent_terminal(provider: Box<dyn Terminal>) -> Object<dyn AgentTerminal>
pub fn agent_terminal(provider: Box<dyn Terminal>) -> Object<dyn AgentTerminal>
Creates the ABI-safe terminal handle given to an AgentHandler.
Trait Implementations§
Source§impl AgentTerminal for TerminalBridge
impl AgentTerminal for TerminalBridge
Source§fn spawn(&self, spec: &Value) -> Result<Object<dyn TerminalRun>, ProviderError>
fn spawn(&self, spec: &Value) -> Result<Object<dyn TerminalRun>, ProviderError>
Starts a terminal process through AI6’s selected Terminal provider.
Source§fn spawn_private(
&self,
spec: &Value,
) -> Result<Object<dyn TerminalRun>, ProviderError>
fn spawn_private( &self, spec: &Value, ) -> Result<Object<dyn TerminalRun>, ProviderError>
Starts a command the handler runs for itself, through the same provider: its output goes
to the handler alone, never to the Run’s viewers, its watchdog or operator input. For
a probe, whose output can hold what no viewer may read.
Source§fn into_object(self) -> Object<dyn AgentTerminal>
fn into_object(self) -> Object<dyn AgentTerminal>
This implementation as a handle: boxed beside its table,
destroyed when the handle is dropped.
Auto Trait Implementations§
impl !RefUnwindSafe for TerminalBridge
impl !UnwindSafe for TerminalBridge
impl Freeze for TerminalBridge
impl Send for TerminalBridge
impl Sync for TerminalBridge
impl Unpin for TerminalBridge
impl UnsafeUnpin for TerminalBridge
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.