pub trait FromCascade:
Default
+ Serialize
+ DeserializeOwned
+ 'static {
// Provided method
fn from_cascade_key(key: &str) -> Self { ... }
}Available on crate feature
transport only.Expand description
Load a transport config from the cascade under a fixed key.
Consolidates the byte-identical from_cascade() bodies each transport config
used to repeat. Implementors only name their key. Without the config
feature the default method returns Default::default().
Provided Methods§
Sourcefn from_cascade_key(key: &str) -> Self
fn from_cascade_key(key: &str) -> Self
Load Self from the config cascade under key, registering the section
in the global registry; falls back to Default if the cascade is
unavailable or the key is absent/invalid.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".