pub enum SpawnErr {
StartupPanic(ActorProcessingErr),
StartupCancelled,
ActorAlreadyStarted,
ActorAlreadyRegistered(ActorName),
}
Expand description
Spawn errors starting an actor
Variants§
StartupPanic(ActorProcessingErr)
Actor panic’d during startup
StartupCancelled
Actor failed to startup because the startup task was cancelled
ActorAlreadyStarted
An actor cannot be started > 1 time
ActorAlreadyRegistered(ActorName)
The named actor is already registered in the registry
Trait Implementations§
source§impl Error for SpawnErr
impl Error for SpawnErr
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ActorRegistryErr> for SpawnErr
impl From<ActorRegistryErr> for SpawnErr
source§fn from(value: ActorRegistryErr) -> Self
fn from(value: ActorRegistryErr) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SpawnErr
impl Send for SpawnErr
impl Sync for SpawnErr
impl Unpin for SpawnErr
impl !UnwindSafe for SpawnErr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Message for Twhere
T: Any + Send + 'static,
impl<T> Message for Twhere T: Any + Send + 'static,
source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage