pub enum ActorErrorKind {
Generic(String),
ErrorDuringHandlingSupervision(String, Box<ActorSupervisionEvent>),
UnhandledSupervisionEvent(Box<ActorSupervisionEvent>),
}Expand description
The kinds of actor serving errors.
Variants§
Generic(String)
Generic error with a formatted message.
ErrorDuringHandlingSupervision(String, Box<ActorSupervisionEvent>)
An error that occurred while trying to handle a supervision event.
UnhandledSupervisionEvent(Box<ActorSupervisionEvent>)
The actor did not attempt to handle
Implementations§
Source§impl ActorErrorKind
impl ActorErrorKind
Sourcepub fn processing(err: Error) -> Self
pub fn processing(err: Error) -> Self
Error while processing actor, i.e., returned by the actor’s processing method.
Sourcepub fn mailbox(err: MailboxError) -> Self
pub fn mailbox(err: MailboxError) -> Self
An underlying mailbox error.
Sourcepub fn mailbox_sender(err: MailboxSenderError) -> Self
pub fn mailbox_sender(err: MailboxSenderError) -> Self
An underlying mailbox sender error.
Sourcepub fn checkpoint(err: CheckpointError) -> Self
pub fn checkpoint(err: CheckpointError) -> Self
An underlying checkpoint error.
Sourcepub fn message_log(err: MessageLogError) -> Self
pub fn message_log(err: MessageLogError) -> Self
An underlying message log error.
Sourcepub fn indeterminate_state() -> Self
pub fn indeterminate_state() -> Self
The actor’s state could not be determined.
Trait Implementations§
Source§impl Clone for ActorErrorKind
impl Clone for ActorErrorKind
Source§fn clone(&self) -> ActorErrorKind
fn clone(&self) -> ActorErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActorErrorKind
impl Debug for ActorErrorKind
Source§impl<'de> Deserialize<'de> for ActorErrorKind
impl<'de> Deserialize<'de> for ActorErrorKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ActorErrorKind
impl Display for ActorErrorKind
Source§impl Error for ActorErrorKind
impl Error for ActorErrorKind
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 PartialEq for ActorErrorKind
impl PartialEq for ActorErrorKind
Source§impl Serialize for ActorErrorKind
impl Serialize for ActorErrorKind
impl Eq for ActorErrorKind
impl StructuralPartialEq for ActorErrorKind
Auto Trait Implementations§
impl Freeze for ActorErrorKind
impl !RefUnwindSafe for ActorErrorKind
impl Send for ActorErrorKind
impl Sync for ActorErrorKind
impl Unpin for ActorErrorKind
impl !UnwindSafe for ActorErrorKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
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
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> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<A, M> Handler<IndexedErasedUnbound<M>> for A
impl<A, M> Handler<IndexedErasedUnbound<M>> for A
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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