Skip to main content

Adapter

Trait Adapter 

Source
pub trait Adapter: Sized {
    type Settings;

    const VENDOR: &'static str;

    // Required method
    fn new(http: Outgoing, settings: Self::Settings) -> Self;
}

Required Associated Constants§

Source

const VENDOR: &'static str

Names its keys, <MODULE>_<VENDOR>_*, and labels its spans and metrics.

Required Associated Types§

Required Methods§

Source

fn new(http: Outgoing, settings: Self::Settings) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§