pub struct InjectionDetector { /* private fields */ }Expand description
Prompt injection detector
Implementations§
Trait Implementations§
Source§impl HookHandler for InjectionDetector
impl HookHandler for InjectionDetector
Source§fn handle(&self, event: &HookEvent) -> HookResponse
fn handle(&self, event: &HookEvent) -> HookResponse
Handle a hook event
Auto Trait Implementations§
impl Freeze for InjectionDetector
impl RefUnwindSafe for InjectionDetector
impl Send for InjectionDetector
impl Sync for InjectionDetector
impl Unpin for InjectionDetector
impl UnsafeUnpin for InjectionDetector
impl UnwindSafe for InjectionDetector
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