pub enum SpawnError<E>where
E: Send + 'static,{
Unavailable,
NameTaken(Cow<'static, str>),
Start(E),
WorkerStopped,
}Available on crate feature
actor only.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> Debug for SpawnError<E>
impl<E> Debug for SpawnError<E>
Source§impl<E> Display for SpawnError<E>where
E: Send + 'static,
impl<E> Display for SpawnError<E>where
E: Send + 'static,
impl<E> Eq for SpawnError<E>
Source§impl<E> Error for SpawnError<E>
impl<E> 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()
Source§impl<E> PartialEq for SpawnError<E>
impl<E> PartialEq for SpawnError<E>
impl<E> 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more