Struct overclock::core::ActorError
source · [−]pub struct ActorError {
pub source: Error,
pub request: Option<ActorRequest>,
}
Expand description
An actor’s error which contains an optional request for the supervisor
Fields
source: Error
The error source
request: Option<ActorRequest>
The actor request
Implementations
sourceimpl ActorError
impl ActorError
sourcepub fn exit_msg<E>(msg: E) -> Self where
E: Display + Debug + Send + Sync + 'static,
pub fn exit_msg<E>(msg: E) -> Self where
E: Display + Debug + Send + Sync + 'static,
Create exit error from message
sourcepub fn aborted<E: Into<Error>>(error: E) -> Self
pub fn aborted<E: Into<Error>>(error: E) -> Self
Create Aborted error from anyhow::error, note: this soft error
sourcepub fn aborted_msg<E>(msg: E) -> Self where
E: Display + Debug + Send + Sync + 'static,
pub fn aborted_msg<E>(msg: E) -> Self where
E: Display + Debug + Send + Sync + 'static,
Create Aborted error from message, note: this soft error
Trait Implementations
sourceimpl Clone for ActorError
impl Clone for ActorError
sourceimpl Debug for ActorError
impl Debug for ActorError
sourceimpl Default for ActorError
impl Default for ActorError
sourceimpl Display for ActorError
impl Display for ActorError
sourceimpl Error for ActorError
impl Error for ActorError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for ActorError
impl Send for ActorError
impl Sync for ActorError
impl Unpin for ActorError
impl !UnwindSafe for ActorError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more