anyclaw-sdk-service 0.2.1

SDK for building anyclaw service extensions
Documentation
/// Errors that can occur in service SDK operations.
#[derive(Debug, thiserror::Error)]
pub enum ServiceSdkError {
    /// Initialization of the service failed.
    #[error("initialization failed: {0}")]
    InitFailed(String),
    /// Shutdown of the service failed.
    #[error("shutdown failed: {0}")]
    ShutdownFailed(String),
    /// An I/O error occurred during communication.
    #[error("IO error: {0}")]
    Io(#[from] std::io::Error),
    /// A JSON serialization/deserialization error occurred.
    #[error("JSON error: {0}")]
    Json(#[from] serde_json::Error),
    /// An internal error with a descriptive message.
    #[error("{0}")]
    Internal(String),
}