pub struct EffectExecutorError {
pub kind: EffectExecutorErrorKind,
pub message: String,
pub source_error: Option<RunError>,
}Expand description
Structured failure from effect coordination.
Fields§
§kind: EffectExecutorErrorKindNormalized category.
message: StringSafe failure explanation.
source_error: Option<RunError>Original handler error, when applicable.
Implementations§
Source§impl EffectExecutorError
impl EffectExecutorError
Sourcepub fn new(kind: EffectExecutorErrorKind, message: impl Into<String>) -> Self
pub fn new(kind: EffectExecutorErrorKind, message: impl Into<String>) -> Self
Creates an error without a handler source.
Trait Implementations§
Source§impl Clone for EffectExecutorError
impl Clone for EffectExecutorError
Source§fn clone(&self) -> EffectExecutorError
fn clone(&self) -> EffectExecutorError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EffectExecutorError
impl Debug for EffectExecutorError
Source§impl Display for EffectExecutorError
impl Display for EffectExecutorError
Source§impl Error for EffectExecutorError
impl Error for EffectExecutorError
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<JournalError> for EffectExecutorError
impl From<JournalError> for EffectExecutorError
Source§fn from(error: JournalError) -> Self
fn from(error: JournalError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EffectExecutorError
impl PartialEq for EffectExecutorError
impl StructuralPartialEq for EffectExecutorError
Auto Trait Implementations§
impl Freeze for EffectExecutorError
impl RefUnwindSafe for EffectExecutorError
impl Send for EffectExecutorError
impl Sync for EffectExecutorError
impl Unpin for EffectExecutorError
impl UnsafeUnpin for EffectExecutorError
impl UnwindSafe for EffectExecutorError
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