pub enum ParameterError {
TypeMismatch,
OutOfRange,
ReadOnly,
NotFound,
StorageFull,
StringConversion,
InvalidRange,
Rejected,
Undeclared,
}Expand description
Error type for typed parameter operations
Variants§
TypeMismatch
Parameter already declared with a different type
OutOfRange
Value is outside allowed range
ReadOnly
Parameter is read-only
NotFound
Parameter not found
StorageFull
Internal storage is full
StringConversion
String conversion failed
InvalidRange
Invalid range for type
Rejected
An on-set-parameters callback refused the write (phase-417 W4.a).
Undeclared
A set on a name that was never declared, and the server does not
allow undeclared parameters (issue 1151; rclrs parameter.rs).
Distinct from NotFound: that is what a DIRECT
ParameterServer::set says about a missing name; this is what the
wire-facing ParameterServer::apply
says when the only remaining option — declaring it — is switched off.
Moved here from the retired SetParameterResult (phase-515).
Trait Implementations§
Source§impl Clone for ParameterError
impl Clone for ParameterError
Source§fn clone(&self) -> ParameterError
fn clone(&self) -> ParameterError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ParameterError
Source§impl Debug for ParameterError
impl Debug for ParameterError
impl Eq for ParameterError
Source§impl From<DeclarationError> for ParameterError
phase-515 R8 – the typed builder’s terminals return DeclarationError
now, as rclrs’s do. This keeps ? into a ParameterError-returning
caller compiling, and maps each case to the ParameterError such a caller
saw before the change.
impl From<DeclarationError> for ParameterError
phase-515 R8 – the typed builder’s terminals return DeclarationError
now, as rclrs’s do. This keeps ? into a ParameterError-returning
caller compiling, and maps each case to the ParameterError such a caller
saw before the change.
Source§fn from(e: DeclarationError) -> Self
fn from(e: DeclarationError) -> Self
Source§impl From<SetParameterResult> for ParameterError
impl From<SetParameterResult> for ParameterError
Source§fn from(result: SetParameterResult) -> Self
fn from(result: SetParameterResult) -> Self
The retired verdict enum’s error half, kept for one release beside the deprecated type (phase-515).