pub struct RawAsyncClient { /* private fields */ }Implementations§
Source§impl RawAsyncClient
impl RawAsyncClient
pub async fn start_with(builder: ClaudeCliBuilder) -> Result<Self>
pub fn new(child: Child) -> Result<Self>
Sourcepub async fn send<T: Serialize>(&mut self, message: &T) -> Result<()>
pub async fn send<T: Serialize>(&mut self, message: &T) -> Result<()>
Serialize and write one typed SDK message.
Sourcepub async fn next_line(&mut self) -> Result<Option<String>>
pub async fn next_line(&mut self) -> Result<Option<String>>
Read one complete JSONL frame without inspecting its contents.
pub fn pid(&self) -> Option<u32>
pub fn is_alive(&mut self) -> bool
pub async fn wait_for_exit(&mut self) -> Result<ExitStatus>
pub async fn shutdown(self) -> Result<()>
Trait Implementations§
Source§impl Drop for RawAsyncClient
impl Drop for RawAsyncClient
Auto Trait Implementations§
impl !RefUnwindSafe for RawAsyncClient
impl !UnwindSafe for RawAsyncClient
impl Freeze for RawAsyncClient
impl Send for RawAsyncClient
impl Sync for RawAsyncClient
impl Unpin for RawAsyncClient
impl UnsafeUnpin for RawAsyncClient
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