Enum State Error
pub enum StateError {
Foreign,
WrongProduct,
UnsupportedEnvelope(u16),
TooNew(u32),
Malformed,
DuplicateParameter(ParameterId),
InvalidValue(ParameterId),
WrongValueCount,
TooLarge,
Rejected,
}Expand description
Reasons state cannot be written or restored. Nothing is partially applied.
Variants§
Foreign
The bytes are not a RAVET envelope and no import hook accepted them.
WrongProduct
The envelope belongs to another product.
UnsupportedEnvelope(u16)
TooNew(u32)
Saved by a newer product state version than this build understands.
Malformed
Truncated, oversized, trailing or otherwise malformed bytes.
DuplicateParameter(ParameterId)
InvalidValue(ParameterId)
A value is not finite, or not exactly representable in the current range. Values are never silently clamped.
WrongValueCount
The value count passed to encode does not match the product.
TooLarge
Rejected
A product hook rejected the state.
Trait Implementations§
§impl Clone for StateError
impl Clone for StateError
§fn clone(&self) -> StateError
fn clone(&self) -> StateError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StateError
§impl Debug for StateError
impl Debug for StateError
§impl Display for StateError
impl Display for StateError
impl Eq for StateError
§impl Error for StateError
impl Error for StateError
1.30.0 · §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 · §fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
§impl PartialEq for StateError
impl PartialEq for StateError
impl StructuralPartialEq for StateError
Auto Trait Implementations§
impl Freeze for StateError
impl RefUnwindSafe for StateError
impl Send for StateError
impl Sync for StateError
impl Unpin for StateError
impl UnsafeUnpin for StateError
impl UnwindSafe for StateError
Blanket Implementations§
impl<T> AutoreleaseSafe for T
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more