pub enum ActrError {
Unavailable(String),
TimedOut,
NotFound(String),
PermissionDenied(String),
InvalidArgument(String),
UnknownRoute(String),
DependencyNotFound {
service_name: String,
message: String,
},
DecodeFailure(String),
NotImplemented(String),
Internal(String),
}Expand description
Top-level framework error, returned to all callers.
Flat enum — no nested error wrapping. Each variant is self-describing.
Variants§
Peer temporarily unavailable: connection lost, overloaded, or reconnecting.
ErrorKind::Transient — retry with backoff.
TimedOut
Request deadline exceeded.
ErrorKind::Transient — may retry with a fresh deadline.
NotFound(String)
Target actor not found.
ErrorKind::Client — do not retry; check service discovery first.
PermissionDenied(String)
Permission denied by ACL.
ErrorKind::Client — do not retry; fix authorization.
InvalidArgument(String)
Invalid argument or malformed request.
ErrorKind::Client — do not retry; fix the request.
UnknownRoute(String)
No handler registered for the given route key.
ErrorKind::Client — do not retry; check service definition.
DependencyNotFound
Required dependency not found in the lock file.
ErrorKind::Client — do not retry; fix the manifest.
DecodeFailure(String)
Protobuf decode failure — message data is corrupted.
ErrorKind::Corrupt — route to Dead Letter Queue; do not retry.
NotImplemented(String)
Feature not yet implemented.
ErrorKind::Internal — do not retry.
Internal(String)
Internal framework error: bug, panic, or unrecoverable state.
ErrorKind::Internal — do not retry; investigate logs.
Trait Implementations§
Source§impl Error for ActrError
impl Error for ActrError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<NetworkError> for ActrError
Convert NetworkError to the public top-level ActrError.
impl From<NetworkError> for ActrError
Convert NetworkError to the public top-level ActrError.
This is the single boundary where transport failures become user-visible errors.
Source§fn from(err: NetworkError) -> Self
fn from(err: NetworkError) -> Self
Auto Trait Implementations§
impl Freeze for ActrError
impl RefUnwindSafe for ActrError
impl Send for ActrError
impl Sync for ActrError
impl Unpin for ActrError
impl UnsafeUnpin for ActrError
impl UnwindSafe for ActrError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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> ⓘ
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> ⓘ
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 moreimpl<T> MaybeSendSync for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.