#[non_exhaustive]pub enum GraphFailure {
Node {
node: String,
source: NodeError,
},
NodeTimeout {
node: String,
},
Checkpoint {
error: CheckpointError,
},
Timeout,
MaxNodeExecutions {
limit: usize,
},
}Expand description
Something that went wrong in a graph run.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Node
A node failed.
NodeTimeout
A node ran out of time.
Checkpoint
The checkpoint could not be read or written.
Fields
§
error: CheckpointErrorWhat went wrong.
Timeout
The run used up GraphBuilder::execution_timeout before its next batch.
MaxNodeExecutions
The next batch would go past GraphBuilder::max_node_executions.
Trait Implementations§
Source§impl Debug for GraphFailure
impl Debug for GraphFailure
Source§impl Display for GraphFailure
impl Display for GraphFailure
Source§impl Error for GraphFailure
impl Error for GraphFailure
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()
Auto Trait Implementations§
impl !RefUnwindSafe for GraphFailure
impl !UnwindSafe for GraphFailure
impl Forget for GraphFailure
impl Freeze for GraphFailure
impl Move for GraphFailure
impl Send for GraphFailure
impl Sync for GraphFailure
impl Unpin for GraphFailure
impl UnsafeUnpin for GraphFailurewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const dyn Error + Send + Sync is !null: UnsafeUnpin,
PhantomData<dyn Error + Send + Sync>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
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