pub struct CaptureInjector { /* private fields */ }Expand description
An injector that records every command it is asked to replay (for tests).
Implementations§
Trait Implementations§
Source§impl Clone for CaptureInjector
impl Clone for CaptureInjector
Source§fn clone(&self) -> CaptureInjector
fn clone(&self) -> CaptureInjector
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CaptureInjector
impl Debug for CaptureInjector
Source§impl Default for CaptureInjector
impl Default for CaptureInjector
Source§fn default() -> CaptureInjector
fn default() -> CaptureInjector
Returns the “default value” for a type. Read more
Source§impl Injector for CaptureInjector
impl Injector for CaptureInjector
Source§fn inject(&self, cmd: &InjectionCommand) -> Result<(), AppError>
fn inject(&self, cmd: &InjectionCommand) -> Result<(), AppError>
Replay one command. A per-command failure is logged by the caller and
does not tear down the daemon.
Source§fn semantic_event(&self, _event: &SemanticEvent) -> Result<(), AppError>
fn semantic_event(&self, _event: &SemanticEvent) -> Result<(), AppError>
Additive application-event hook. Never fall back to OS injection.
fn supports_events(&self) -> bool
Auto Trait Implementations§
impl Freeze for CaptureInjector
impl RefUnwindSafe for CaptureInjector
impl Send for CaptureInjector
impl Sync for CaptureInjector
impl Unpin for CaptureInjector
impl UnsafeUnpin for CaptureInjector
impl UnwindSafe for CaptureInjector
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