pub struct ShellClient;Expand description
Shell client for Sage agents.
Provides command execution via the system shell.
Implementations§
Source§impl ShellClient
impl ShellClient
Sourcepub fn from_env() -> Self
pub fn from_env() -> Self
Create a new shell client from environment variables.
Currently no environment configuration is needed.
Sourcepub async fn run(&self, command: String) -> SageResult<ShellResult>
pub async fn run(&self, command: String) -> SageResult<ShellResult>
Trait Implementations§
Source§impl Clone for ShellClient
impl Clone for ShellClient
Source§fn clone(&self) -> ShellClient
fn clone(&self) -> ShellClient
Returns a duplicate of the value. Read more
1.0.0 · 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 ShellClient
impl Debug for ShellClient
Source§impl Default for ShellClient
impl Default for ShellClient
Source§fn default() -> ShellClient
fn default() -> ShellClient
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ShellClient
impl RefUnwindSafe for ShellClient
impl Send for ShellClient
impl Sync for ShellClient
impl Unpin for ShellClient
impl UnsafeUnpin for ShellClient
impl UnwindSafe for ShellClient
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