pub enum DemoError {
YamlParse(Error),
Validation(String),
Schema(String),
MetamorphicFailure {
id: String,
message: String,
},
InvariantViolation(String),
Serialization(String),
}Expand description
Errors that can occur in demo operations.
Variants§
YamlParse(Error)
YAML parsing failed.
Validation(String)
Configuration validation failed.
Schema(String)
Schema validation failed.
MetamorphicFailure
Metamorphic relation verification failed.
InvariantViolation(String)
Invariant violation detected.
Serialization(String)
State serialization failed.
Trait Implementations§
Source§impl Error for DemoError
impl Error for DemoError
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 DemoError
impl !RefUnwindSafe for DemoError
impl Send for DemoError
impl Sync for DemoError
impl Unpin for DemoError
impl UnsafeUnpin for DemoError
impl !UnwindSafe for DemoError
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
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP