pub struct ClaudeCodeDetector { /* private fields */ }Expand description
Detector for Claude Code CLI
Implementations§
Trait Implementations§
Source§impl Default for ClaudeCodeDetector
impl Default for ClaudeCodeDetector
Source§impl StatusDetector for ClaudeCodeDetector
impl StatusDetector for ClaudeCodeDetector
Source§fn detect_status(&self, title: &str, content: &str) -> AgentStatus
fn detect_status(&self, title: &str, content: &str) -> AgentStatus
Detect the current status of the agent
Source§fn detect_status_with_context(
&self,
title: &str,
content: &str,
context: &DetectionContext<'_>,
) -> AgentStatus
fn detect_status_with_context( &self, title: &str, content: &str, context: &DetectionContext<'_>, ) -> AgentStatus
Detect the current status with additional context Read more
Source§fn detect_status_with_reason(
&self,
title: &str,
content: &str,
context: &DetectionContext<'_>,
) -> DetectionResult
fn detect_status_with_reason( &self, title: &str, content: &str, context: &DetectionContext<'_>, ) -> DetectionResult
Detect status with reason for audit logging Read more
Source§fn detect_context_warning(&self, content: &str) -> Option<u8>
fn detect_context_warning(&self, content: &str) -> Option<u8>
Detect context warning (e.g., “Context left until auto-compact: XX%”)
Returns the percentage remaining if warning is present
Source§fn agent_type(&self) -> AgentType
fn agent_type(&self) -> AgentType
Get the agent type this detector handles
Source§fn approval_keys(&self) -> &str
fn approval_keys(&self) -> &str
Keys to send for approval (Enter for cursor-based UI)
Auto Trait Implementations§
impl Freeze for ClaudeCodeDetector
impl RefUnwindSafe for ClaudeCodeDetector
impl Send for ClaudeCodeDetector
impl Sync for ClaudeCodeDetector
impl Unpin for ClaudeCodeDetector
impl UnsafeUnpin for ClaudeCodeDetector
impl UnwindSafe for ClaudeCodeDetector
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.