pub trait EnvInterface:
DeserializeOwned
+ Debug
+ Clone
+ Send
+ Sync {
type Settings;
// Required method
fn setup(_: &Self::Settings) -> Result<Self, Error>
where Self: Sized;
// Provided method
fn from_file(path: impl AsRef<Path>) -> Result<Self, Error> { ... }
}Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.