agner_actors/system/errors.rs
1/// A failure to spawn an actor by [`System::spawn(&self, ...)`](crate::system::System::spawn).
2#[derive(Debug, thiserror::Error)]
3pub enum SysSpawnError {
4 #[error("No available IDs (max_actors limit reached)")]
5 MaxActorsLimit,
6}
7
8/// An failure to open a channel to an actor (see [`System::channel::<Message>(&self,
9/// ActorID)`](crate::system::System::channel))
10#[derive(Debug, thiserror::Error)]
11pub enum SysChannelError {
12 #[error("No such actor")]
13 NoActor,
14
15 #[error("Invalid message-type")]
16 InvalidMessageType,
17}