nitinol-process 0.1.0

Pseudo-actor type process library for Nitinol using green thread of tokio
Documentation
use nitinol_core::identifier::EntityId;

#[derive(Debug, thiserror::Error)]
#[error("channel may have been dropped or thread may have been stopped.")]
pub struct ChannelDropped;

#[derive(Debug, thiserror::Error)]
#[error("Invalid cast to {to}")]
pub struct InvalidCast {
    pub to: &'static str
}

#[derive(Debug, thiserror::Error)]
#[error("Already registered {0} in registry")]
pub struct AlreadyExist(pub EntityId);

#[derive(Debug, thiserror::Error)]
#[error("Not found {0} in registry")]
pub struct NotFound(pub EntityId);