pub struct LogInjector;Expand description
An injector that only logs what it would replay — the safe default for
headless hosts and --dry-run. Writes one NDJSON line per command to stderr.
Trait Implementations§
Source§impl Debug for LogInjector
impl Debug for LogInjector
Source§impl Default for LogInjector
impl Default for LogInjector
Source§fn default() -> LogInjector
fn default() -> LogInjector
Returns the “default value” for a type. Read more
Source§impl Injector for LogInjector
impl Injector for LogInjector
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 LogInjector
impl RefUnwindSafe for LogInjector
impl Send for LogInjector
impl Sync for LogInjector
impl Unpin for LogInjector
impl UnsafeUnpin for LogInjector
impl UnwindSafe for LogInjector
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