Skip to main content

Config

Trait Config 

Source
pub trait Config: Send + Sync {
    // Required method
    fn get(&self, key: &str) -> impl Future<Output = Result<String>> + Send;
}
Expand description

The Config trait is used by implementers to provide configuration from WASI-guest to dependent crates.

Required Methods§

Source

fn get(&self, key: &str) -> impl Future<Output = Result<String>> + Send

Get configuration setting.

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.

Implementors§