sprite-core 0.1.7

Sprite Engine — a fault-tolerant actor runtime for Rust
Documentation
use thiserror::Error;

#[derive(Error, Debug, Clone, PartialEq)]
pub enum SpriteError {
    #[error("actor {0} not found")]
    ActorNotFound(u64),
    #[error("mailbox closed for actor {0}")]
    MailboxClosed(u64),
    #[error("state key '{0}' not found")]
    StateNotFound(String),
    #[error("state type mismatch for key '{0}'")]
    StateTypeMismatch(String),
    #[error("request timed out")]
    RequestTimeout,
    #[error("pool '{0}' not found")]
    PoolNotFound(String),
    #[error("actor '{0}' not found in registry")]
    RegistryNotFound(String),
}