pub struct NativeAdapter;Expand description
An agent that is a process on this machine.
Trait Implementations§
Source§impl Clone for NativeAdapter
impl Clone for NativeAdapter
Source§fn clone(&self) -> NativeAdapter
fn clone(&self) -> NativeAdapter
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 moreimpl Copy for NativeAdapter
Source§impl Debug for NativeAdapter
impl Debug for NativeAdapter
Source§impl Default for NativeAdapter
impl Default for NativeAdapter
Source§fn default() -> NativeAdapter
fn default() -> NativeAdapter
Returns the “default value” for a type. Read more
Source§impl RuntimeAdapter for NativeAdapter
impl RuntimeAdapter for NativeAdapter
fn kind(&self) -> RuntimeKind
Source§fn credentials(
&self,
_block_id: &str,
env: &HashMap<String, String>,
) -> Vec<(String, String)>
fn credentials( &self, _block_id: &str, env: &HashMap<String, String>, ) -> Vec<(String, String)>
The env a turn’s process is given, from the env the block resolved.
block_id names whose
scoped token a runtime that uses one hands out.Source§fn srv_endpoint(&self, local_url: &str) -> String
fn srv_endpoint(&self, local_url: &str) -> String
AGENTMUX_LOCAL_URL as the process sees it, given how this srv sees itself.Source§fn map_mount(&self, _role: MountRole, host_path: &str) -> String
fn map_mount(&self, _role: MountRole, host_path: &str) -> String
Where
host_path, the folder of role, appears in the runtime.Source§fn tool_path(&self, tool: ToolId) -> String
fn tool_path(&self, tool: ToolId) -> String
How
tool is named in the config files written for the agent.Source§fn materialize(&self, ctrl: &SubprocessController)
fn materialize(&self, ctrl: &SubprocessController)
What a turn does before it runs. Call before
launch.Source§fn launch(
&self,
ctrl: &SubprocessController,
config: SubprocessSpawnConfig,
) -> Result<(), String>
fn launch( &self, ctrl: &SubprocessController, config: SubprocessSpawnConfig, ) -> Result<(), String>
Start one turn.
config is in the host’s shape (cli_command, cli_args, working_dir);
a runtime that runs the CLI elsewhere turns that into its own.Source§fn carries_signing_keys(&self) -> bool
fn carries_signing_keys(&self) -> bool
Whether the
.mcp.json written for the agent carries its signing keys. A runtime that mounts
the file where other code reads it does not.Source§fn accepts_attachments(&self) -> bool
fn accepts_attachments(&self) -> bool
Whether an attachment’s host path means anything to the agent.
Source§fn accepts_persistent_controller(&self) -> bool
fn accepts_persistent_controller(&self) -> bool
Whether a long-lived (persistent) controller can host the agent.
Source§fn can_host(&self, _controller: ControllerType) -> bool
fn can_host(&self, _controller: ControllerType) -> bool
Whether a provider run by
controller can run here.Source§fn controller_type_for_open(
&self,
provider_default: &'static str,
) -> &'static str
fn controller_type_for_open( &self, provider_default: &'static str, ) -> &'static str
The controller type a new pane gets, given the provider’s own.
Auto Trait Implementations§
impl Freeze for NativeAdapter
impl RefUnwindSafe for NativeAdapter
impl Send for NativeAdapter
impl Sync for NativeAdapter
impl Unpin for NativeAdapter
impl UnsafeUnpin for NativeAdapter
impl UnwindSafe for NativeAdapter
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.