Enum thespis_impl::ThesErr
source · pub enum ThesErr {
ActorStoppedBeforeResponse {
info: Arc<ActorInfo>,
},
MailboxClosed {
info: Arc<ActorInfo>,
src: Option<DynError>,
},
Spawn {
info: Arc<ActorInfo>,
src: SpawnError,
},
}
Expand description
Errors that can happen in thespis_impl.
Variants§
ActorStoppedBeforeResponse
Either the actor panicked during processing of the message or the mailbox was dropped.
Only returned when doing a call
.
MailboxClosed
You try to use a mailbox that is already closed. The mailbox can be closed by dropping all strong addresses to it or by dropping the future that is running it.
When you get this error, the mailbox is gone and the address should be dropped. It will never accept messages again.
Spawn
Failed to spawn the mailbox.
Implementations§
Trait Implementations§
source§impl Error for ThesErr
impl Error for ThesErr
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 PartialEq<ThesErr> for ThesErr
impl PartialEq<ThesErr> for ThesErr
impl Eq for ThesErr
Auto Trait Implementations§
impl !RefUnwindSafe for ThesErr
impl Send for ThesErr
impl Sync for ThesErr
impl Unpin for ThesErr
impl !UnwindSafe for ThesErr
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