nika-event 0.47.0

Event log and trace system for Nika workflows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use thiserror::Error;

/// Errors that can occur in the event system.
#[derive(Debug, Error)]
pub enum EventError {
    #[error("Failed to write trace: {0}")]
    TraceWrite(#[from] std::io::Error),

    #[error("Failed to serialize event: {0}")]
    Serialization(#[from] serde_json::Error),
}

/// Result type for event operations.
pub type Result<T> = std::result::Result<T, EventError>;