pub trait Declared:
Copy
+ Eq
+ 'static {
type Caps;
const FALLBACK_CODE: ErrorCode;
const REFUSED_CODE: ErrorCode;
// Required methods
fn name(self) -> &'static str;
fn lacks(self, caps: &Self::Caps) -> Option<String>;
fn fallback(self) -> Option<Self>;
}Expand description
A setting value with a declared fallback chain.
Required Associated Constants§
Sourceconst FALLBACK_CODE: ErrorCode
const FALLBACK_CODE: ErrorCode
The code of the warning a fallback emits: (requested, why, running).
Sourceconst REFUSED_CODE: ErrorCode
const REFUSED_CODE: ErrorCode
The code of the refusal a strict setting emits: (requested, why).
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".