pub enum ReporterError {
Aborted,
Disconnected,
Transcript(Error),
NoCurrentStep(&'static str),
}Expand description
Errors that can arise while emitting events or awaiting a response.
Variants§
Aborted
The operator requested an abort. Propagated up through the action handler so the executor can unwind to a clean failure.
Disconnected
The UI thread disconnected from one of the channels. The executor treats this as a fatal failure (the operator is no longer reachable).
Transcript(Error)
Failed to persist a fact to the transcript sink.
NoCurrentStep(&'static str)
Reporter was asked to emit a step-scoped signal but no step is set.
Implementations§
Source§impl ReporterError
impl ReporterError
Sourcepub fn to_error_record(&self) -> ErrorRecord
pub fn to_error_record(&self) -> ErrorRecord
Convert this error into an ErrorRecord suitable for the transcript.
Trait Implementations§
Source§impl Debug for ReporterError
impl Debug for ReporterError
Source§impl Display for ReporterError
impl Display for ReporterError
Source§impl Error for ReporterError
impl Error for ReporterError
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<Error> for ReporterError
impl From<Error> for ReporterError
Source§impl From<ReporterError> for ActionError
impl From<ReporterError> for ActionError
Source§fn from(value: ReporterError) -> Self
fn from(value: ReporterError) -> Self
Converts to this type from the input type.
Source§impl From<ReporterError> for ExecutionError
impl From<ReporterError> for ExecutionError
Source§fn from(value: ReporterError) -> Self
fn from(value: ReporterError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReporterError
impl !RefUnwindSafe for ReporterError
impl Send for ReporterError
impl Sync for ReporterError
impl Unpin for ReporterError
impl UnsafeUnpin for ReporterError
impl !UnwindSafe for ReporterError
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