pub struct ClaudeCodeProcess { /* private fields */ }Expand description
Claude Code process manager.
Implementations§
Source§impl ClaudeCodeProcess
impl ClaudeCodeProcess
Sourcepub fn new(
config: ClaudeCodeConfig,
notification_tx: Sender<Value>,
) -> ClaudeCodeProcess
pub fn new( config: ClaudeCodeConfig, notification_tx: Sender<Value>, ) -> ClaudeCodeProcess
Create a new Claude Code process manager.
Sourcepub async fn session_id(&self) -> Option<String>
pub async fn session_id(&self) -> Option<String>
Get the session ID.
Sourcepub async fn spawn(
config: ClaudeCodeConfig,
notification_tx: Sender<Value>,
) -> Result<ClaudeCodeProcess, String>
pub async fn spawn( config: ClaudeCodeConfig, notification_tx: Sender<Value>, ) -> Result<ClaudeCodeProcess, String>
Spawn the Claude Code process.
Auto Trait Implementations§
impl Freeze for ClaudeCodeProcess
impl !RefUnwindSafe for ClaudeCodeProcess
impl Send for ClaudeCodeProcess
impl Sync for ClaudeCodeProcess
impl Unpin for ClaudeCodeProcess
impl UnsafeUnpin for ClaudeCodeProcess
impl !UnwindSafe for ClaudeCodeProcess
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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