pub enum RuntimeOptionError {
OutOfRange {
field: &'static str,
value: u64,
min: u64,
max: u64,
},
TransparentAnchorColor {
field: &'static str,
slot: &'static str,
alpha: u8,
},
CapabilityGated {
field: &'static str,
detail: GatingDetail,
},
}Expand description
A single, explicit option validation/gating failure.
Variants§
OutOfRange
A numeric field is outside its allowed schema range.
Fields
TransparentAnchorColor
A theme anchor colour (foreground/background) was not fully opaque.
Fields
CapabilityGated
The value is schema-valid but unsupported by the active capability profile.
Implementations§
Trait Implementations§
Source§impl Clone for RuntimeOptionError
impl Clone for RuntimeOptionError
Source§fn clone(&self) -> RuntimeOptionError
fn clone(&self) -> RuntimeOptionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeOptionError
impl Debug for RuntimeOptionError
Source§impl Display for RuntimeOptionError
impl Display for RuntimeOptionError
impl Eq for RuntimeOptionError
Source§impl Error for RuntimeOptionError
impl Error for RuntimeOptionError
1.30.0 · 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()
Source§impl PartialEq for RuntimeOptionError
impl PartialEq for RuntimeOptionError
Source§fn eq(&self, other: &RuntimeOptionError) -> bool
fn eq(&self, other: &RuntimeOptionError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuntimeOptionError
Auto Trait Implementations§
impl Freeze for RuntimeOptionError
impl RefUnwindSafe for RuntimeOptionError
impl Send for RuntimeOptionError
impl Sync for RuntimeOptionError
impl Unpin for RuntimeOptionError
impl UnsafeUnpin for RuntimeOptionError
impl UnwindSafe for RuntimeOptionError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.