pub enum ActorError {
DuplicateFact {
key: String,
},
DuplicateTransition {
key: String,
},
StepLimit {
limit: u32,
},
BadThreadId {
thread_id: String,
},
Schema(String),
Config(String),
Defect(String),
Handler {
key: String,
message: String,
},
}Expand description
Expected failures of the actor runtime. Defects use crate::Exit::Die.
Variants§
DuplicateFact
DuplicateTransition
StepLimit
BadThreadId
Schema(String)
Config(String)
Defect(String)
A defect. The coding fold does not retry it and does not append a fact.
Handler
Trait Implementations§
Source§impl Clone for ActorError
impl Clone for ActorError
Source§impl Debug for ActorError
impl Debug for ActorError
Source§impl Display for ActorError
impl Display for ActorError
impl Eq for ActorError
Source§impl Error for ActorError
impl Error for ActorError
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<ActorError> for Exit<ActorError>
impl From<ActorError> for Exit<ActorError>
Source§fn from(error: ActorError) -> Self
fn from(error: ActorError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ActorError
impl PartialEq for ActorError
impl StructuralPartialEq for ActorError
Auto Trait Implementations§
impl Freeze for ActorError
impl RefUnwindSafe for ActorError
impl Send for ActorError
impl Sync for ActorError
impl Unpin for ActorError
impl UnsafeUnpin for ActorError
impl UnwindSafe for ActorError
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