pub enum SpawnError<E: Send + 'static> {
Unavailable,
NameTaken(Cow<'static, str>),
Start(E),
WorkerStopped,
}Expand description
An error encountered while starting an actor.
Variants§
The cluster is no longer accepting actors.
NameTaken(Cow<'static, str>)
Another actor is registered under this name.
Start(E)
The actor’s startup hook failed.
WorkerStopped
The worker stopped before startup completed.
Trait Implementations§
Source§impl<E: Send + 'static> Display for SpawnError<E>
impl<E: Send + 'static> Display for SpawnError<E>
impl<E: Eq + Send + 'static> Eq for SpawnError<E>
Source§impl<E: Error + Send + 'static> Error for SpawnError<E>
impl<E: Error + Send + 'static> Error for SpawnError<E>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
impl<E: PartialEq + Send + 'static> StructuralPartialEq for SpawnError<E>
Auto Trait Implementations§
impl<E> Freeze for SpawnError<E>where
E: Freeze,
impl<E> RefUnwindSafe for SpawnError<E>where
E: RefUnwindSafe,
impl<E> Send for SpawnError<E>
impl<E> Sync for SpawnError<E>where
E: Sync,
impl<E> Unpin for SpawnError<E>where
E: Unpin,
impl<E> UnsafeUnpin for SpawnError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for SpawnError<E>where
E: UnwindSafe,
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