Module execution_hooks

Module execution_hooks 

Source
Expand description

Execution hooks and middleware for pipeline execution

This module provides a flexible hook system that allows users to inject custom logic at various stages of pipeline execution. Hooks can be used for logging, monitoring, data validation, performance measurement, and custom preprocessing/postprocessing.

Structs§

AuditEntry
CustomHook
Custom hook implementation
CustomHookBuilder
Custom hook builder for creating application-specific hooks
ErrorRecord
ErrorRecoveryHook
Error recovery hook for handling and recovering from execution errors
ExecutionContext
Execution context passed to hooks
HookComposition
Hook composition system for chaining multiple hooks
HookDependency
Advanced hook dependency management system
HookManager
Hook manager for managing and executing hooks
LoggingHook
Logging hook for pipeline execution
MemoryUsage
Memory usage statistics
PerformanceHook
Performance monitoring hook
PerformanceMetrics
Performance metrics tracked during execution
ResourceManagerHook
Resource management hook for tracking and managing computational resources
ResourceUsage
ResourceViolation
SecurityAuditHook
Security and audit hook for tracking sensitive operations
ValidationHook
Data validation hook

Enums§

AuditResult
CompositionStrategy
FallbackStrategy
HookData
Data that can be passed between hooks and pipeline steps
HookPhase
Hook execution phase
HookResult
Hook execution result
LogLevel
ViolationType

Traits§

AsyncExecutionHook
Async execution hook trait for non-blocking operations Note: Would use #[async_trait::async_trait] in real implementation
DependentExecutionHook
Hook with dependency management
ExecutionHook
Trait for implementing execution hooks