pub struct DefaultDetector { /* private fields */ }Expand description
Default detector for unknown or custom agents
Implementations§
Trait Implementations§
Source§impl StatusDetector for DefaultDetector
impl StatusDetector for DefaultDetector
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_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 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)
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
Auto Trait Implementations§
impl Freeze for DefaultDetector
impl RefUnwindSafe for DefaultDetector
impl Send for DefaultDetector
impl Sync for DefaultDetector
impl Unpin for DefaultDetector
impl UnsafeUnpin for DefaultDetector
impl UnwindSafe for DefaultDetector
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.