pub struct ClaudePtySession { /* private fields */ }Implementations§
Source§impl ClaudePtySession
impl ClaudePtySession
pub fn spawn(config: ClaudePtyConfig) -> Result<Self>
pub fn write_bytes(&mut self, bytes: &[u8]) -> Result<()>
pub fn submit_prompt(&mut self, prompt: &str) -> Result<()>
pub fn send_exit(&mut self) -> Result<()>
pub fn send_interrupt(&mut self) -> Result<()>
pub fn terminate(&mut self) -> Result<()>
pub fn screen_snapshot(&self) -> Result<String>
pub fn is_idle(&self) -> bool
pub fn permission_dialog(&self) -> Result<Option<PermissionDialog>>
pub fn select_permission( &mut self, decision: PermissionDecision, ) -> Result<bool>
pub fn detach_for_user(&mut self) -> Result<()>
Trait Implementations§
Source§impl Drop for ClaudePtySession
impl Drop for ClaudePtySession
Auto Trait Implementations§
impl Freeze for ClaudePtySession
impl !RefUnwindSafe for ClaudePtySession
impl Send for ClaudePtySession
impl !Sync for ClaudePtySession
impl Unpin for ClaudePtySession
impl UnsafeUnpin for ClaudePtySession
impl !UnwindSafe for ClaudePtySession
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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.Source§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.Source§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.Source§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.