Struct grid_sdk::error::InvalidStateError [−][src]
pub struct InvalidStateError { /* fields omitted */ }Expand description
An error returned when an operation cannot be completed because the state of the underlying struct is inconsistent.
This can be caused by a caller when a sequence of functions is called in a way that results in a state which is inconsistent.
This usually indicates a programming error on behalf of the caller.
Implementations
Constructs a new InvalidStateError with a specified message string.
The implementation of std::fmt::Display for this error will be the message string
provided.
Examples
use grid_sdk::error::InvalidStateError; let invalid_state_error = InvalidStateError::with_message("oops".to_string()); assert_eq!(format!("{}", invalid_state_error), "oops");
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for InvalidStateErrorimpl Send for InvalidStateErrorimpl Sync for InvalidStateErrorimpl Unpin for InvalidStateErrorimpl UnwindSafe for InvalidStateError