#[non_exhaustive]pub struct StopCause {
pub class: Class,
pub is_fault: bool,
pub retry_after: Option<Duration>,
pub message: String,
}Expand description
The error a supervised path stopped on, kept for
SpotWsError::Stopped after the error itself was yielded: its class,
whether it was a fault, the wait it asked for, and its text.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.class: ClassThe error’s class.
is_fault: boolWhether the error was a fault.
retry_after: Option<Duration>The wait the error asked for.
message: StringThe error’s text.
Implementations§
Trait Implementations§
impl Eq for StopCause
impl StructuralPartialEq for StopCause
Auto Trait Implementations§
impl Freeze for StopCause
impl RefUnwindSafe for StopCause
impl Send for StopCause
impl Sync for StopCause
impl Unpin for StopCause
impl UnsafeUnpin for StopCause
impl UnwindSafe for StopCause
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