ResolvePeripheral

Trait ResolvePeripheral 

Source
pub trait ResolvePeripheral<'a>: AsRef<str> {
    type Config;

    // Required methods
    fn get_map(
        root: &'a EspforgeConfiguration,
    ) -> Option<&'a HashMap<String, Self::Config>>;
    fn as_str(&self) -> &str;
    fn section_name() -> &'static str;
}

Required Associated Types§

Required Methods§

Source

fn get_map( root: &'a EspforgeConfiguration, ) -> Option<&'a HashMap<String, Self::Config>>

Returns the map containing the configs for this peripheral type

Source

fn as_str(&self) -> &str

Source

fn section_name() -> &'static str

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§