pub struct ShellService { /* private fields */ }Implementations§
Source§impl ShellService
impl ShellService
pub fn new(config: ShellConfig) -> Self
pub fn current_directory(&self) -> &Path
pub fn allowed_directory(&self) -> &Path
pub async fn execute_command( &mut self, command: &str, conversation_id: Option<&str>, ) -> Result<CommandResult>
pub fn get_command_history( &self, conversation_id: &str, limit: Option<usize>, ) -> Vec<CommandHistoryEntry>
pub fn clear_command_history(&mut self, conversation_id: &str)
pub fn get_current_directory(&self, _conversation_id: Option<&str>) -> &Path
pub fn get_allowed_directory(&self) -> &Path
Auto Trait Implementations§
impl Freeze for ShellService
impl RefUnwindSafe for ShellService
impl Send for ShellService
impl Sync for ShellService
impl Unpin for ShellService
impl UnwindSafe for ShellService
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