#[non_exhaustive]pub struct ResultError {
pub occurred: bool,
pub code: i32,
pub message: String,
}Expand description
What a step reported when something went wrong.
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.occurred: boolWhether an error was reported at all. When false, the other two fields carry no meaning.
code: i32The engine’s numeric code for the failure.
message: StringThe failure text, empty when the engine recorded none.
Trait Implementations§
Source§impl Clone for ResultError
impl Clone for ResultError
Source§fn clone(&self) -> ResultError
fn clone(&self) -> ResultError
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 ResultError
impl Debug for ResultError
Source§impl Default for ResultError
impl Default for ResultError
Source§fn default() -> ResultError
fn default() -> ResultError
Returns the “default value” for a type. Read more
Source§impl PartialEq for ResultError
impl PartialEq for ResultError
impl StructuralPartialEq for ResultError
Auto Trait Implementations§
impl Freeze for ResultError
impl RefUnwindSafe for ResultError
impl Send for ResultError
impl Sync for ResultError
impl Unpin for ResultError
impl UnsafeUnpin for ResultError
impl UnwindSafe for ResultError
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