pub enum RuntimeError {
Send(ActorSendError),
ActorNotFound(String),
Timeout,
Rejected {
interceptor: String,
reason: String,
},
RetryAfter {
interceptor: String,
retry_after: Duration,
},
Actor(ActorError),
Cancelled,
NotSupported(NotSupportedError),
SpawnFailed(String),
}Expand description
Unified error returned by runtime operations (ask, stream, feed, etc.).
Covers all failure modes: delivery errors, timeouts, interceptor rejections, and handler-level actor errors.
Variants§
Send(ActorSendError)
Message delivery failed (actor stopped, mailbox full, etc.)
ActorNotFound(String)
The target actor was not found or has stopped.
Timeout
The operation timed out.
Rejected
The operation was rejected by an interceptor.
Fields
RetryAfter
An interceptor suggests the caller retry after the given duration. The message was NOT delivered.
Fields
Actor(ActorError)
A handler-level error occurred.
Cancelled
The operation was cancelled via CancellationToken.
NotSupported(NotSupportedError)
The requested capability is not supported by this adapter.
SpawnFailed(String)
Actor spawn failed.
Trait Implementations§
Source§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
Source§impl Error for RuntimeError
impl Error for RuntimeError
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 From<ActorSendError> for RuntimeError
impl From<ActorSendError> for RuntimeError
Source§fn from(e: ActorSendError) -> Self
fn from(e: ActorSendError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RuntimeError
impl RefUnwindSafe for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnsafeUnpin for RuntimeError
impl UnwindSafe for RuntimeError
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