pub enum OperationCategory {
Configuration,
Deployment,
Monitoring,
Analysis,
Response,
Audit,
System,
IO,
Deception,
Detection,
Containment,
}Expand description
Operation category for contextualizing errors without revealing architecture.
Categories are intentionally broad to provide SOC operators with sufficient signal for triage and response while preventing attackers from mapping internal system topology through error analysis.
§Design Principle
Each category represents a functional domain rather than a specific component. This prevents errors from revealing:
- Service boundaries
- Technology stack details
- Deployment architecture
- Internal naming conventions
§Copy Semantics Exception
This is the only type in this module that implements Copy. Rationale:
- Small fieldless enum (single byte in practice)
- No owned or sensitive data
- Copying is cheaper than reference passing (no indirection)
- Frequently passed by value in error construction
§Deception Support
Honeypot-specific categories (Deception, Detection, Containment) have deceptive display names that mask defensive operations as routine work.
Variants§
Configuration
Configuration parsing, validation, or application
Deployment
Artifact deployment, management, or versioning
Monitoring
Event collection, monitoring, or observability
Analysis
Rule evaluation, scoring, or decision logic
Response
Action execution, remediation, or enforcement
Audit
Logging, audit trail, or compliance recording
System
System-level operations (process, memory, OS interaction)
IO
File system or network I/O operations
Deception
Honeypot luring, facade maintenance, or attacker engagement
Detection
Intrusion detection, anomaly identification, or threat recognition
Containment
Attack isolation, sandboxing, or containment operations
Implementations§
Source§impl OperationCategory
impl OperationCategory
Sourcepub const fn display_name(&self) -> &'static str
pub const fn display_name(&self) -> &'static str
Sourcepub const fn deceptive_name(&self) -> &'static str
pub const fn deceptive_name(&self) -> &'static str
Get deceptive display name for external contexts.
§Returns
Static string that masks honeypot-specific operations as routine work:
- Deception → “Routine Operation”
- Detection → “Routine Operation”
- Containment → “Routine Operation”
- All others → Same as
display_name()
§Use Case
For external error messages where revealing defensive operations would compromise the honeypot’s effectiveness. Generic labels prevent attackers from identifying which interactions triggered defensive responses.
§Performance
Const function, zero runtime cost. Compiled to direct pointer return.
Trait Implementations§
Source§impl Clone for OperationCategory
impl Clone for OperationCategory
Source§fn clone(&self) -> OperationCategory
fn clone(&self) -> OperationCategory
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more