pub enum FanError {
AllFailed {
count: usize,
errors: HashMap<String, String>,
},
SomeFailed {
failure_count: usize,
total: usize,
errors: HashMap<String, String>,
},
TaskTimeout {
name: String,
timeout_ms: u64,
},
JoinError {
name: String,
reason: String,
},
}Expand description
Errors produced by fan execution.
Variants§
AllFailed
All tasks failed; wraps the per-task error map.
SomeFailed
A subset of tasks failed under CollectAll strategy.
Fields
TaskTimeout
A task exceeded its timeout.
JoinError
An underlying tokio join error (task panicked).
Trait Implementations§
Source§impl Error for FanError
impl Error for FanError
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()
Auto Trait Implementations§
impl Freeze for FanError
impl RefUnwindSafe for FanError
impl Send for FanError
impl Sync for FanError
impl Unpin for FanError
impl UnsafeUnpin for FanError
impl UnwindSafe for FanError
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