#[non_exhaustive]pub enum ResolveError {
UnknownActuator(Id),
UnknownOperationMode(Id),
UnknownSequence(Id),
WrongContainer {
position: usize,
expected: Id,
found: Option<Id>,
},
BadFactor(f64),
FillLevelNotCovered(f64),
NotDescribed,
}Expand description
Why an instruction could not be read against the description that was sent.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnknownActuator(Id)
The instruction names an actuator the description does not have.
UnknownOperationMode(Id)
The instruction names an operation mode the actuator does not have.
UnknownSequence(Id)
The instruction names a profile, container or sequence that was never published.
WrongContainer
A set of choices does not name each of the profile’s containers exactly once, in the order the profile lists them.
Array order is execution order
(S2J messages/PPBC.PowerProfileDefinition.power_sequences_containers), so a set
of choices that skips a container, repeats one or reorders them does not describe
a runnable schedule — and silently scheduling it in the order it was written would
answer a question nobody asked.
Fields
BadFactor(f64)
The factor is outside [0, 1].
FillLevelNotCovered(f64)
No element of the operation mode covers the present fill level.
NotDescribed
No system description for this control type has been seen on this session.
Not a defect in the instruction: an instruction that arrives before the description it refers to cannot be read, and saying so is different from saying the instruction is wrong.
Trait Implementations§
Source§impl Clone for ResolveError
impl Clone for ResolveError
Source§impl Debug for ResolveError
impl Debug for ResolveError
Source§impl Display for ResolveError
impl Display for ResolveError
Source§impl Error for ResolveError
impl Error for ResolveError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()