Expand description
Error types for the netpulse crate.
This module provides specialized error types for different components of netpulse:
StoreError
- Errors related to store operations (loading, saving, versioning)CheckError
- Errors that occur during network checks (HTTP, ICMP)RunError
- Errors specific to executable operationsAnalysisError
- Errors that occur during analysis and report generation
All error types implement the standard Error trait and provide detailed error information.
§Examples
use netpulse::store::Store;
use netpulse::errors::StoreError;
fn load_store() -> Result<Store, StoreError> {
match Store::load(false) {
Ok(store) => Ok(store),
Err(StoreError::DoesNotExist) => Store::create(),
Err(e) => Err(e),
}
}
Enums§
- Analysis
Error - Errors that can occur during analysis and report generation.
- Check
Error - Errors that can occur during network checks.
- RunError
- Errors that can occur during daemon operations.
- Store
Error - Errors that can occur during store operations.