EndpointConfig

Trait EndpointConfig 

Source
pub trait EndpointConfig: Debug + Deserialize {
    // Required method
    fn to_endpoint(&self) -> Result<Box<dyn Endpoint + Send>, Error>;
}
Expand description

A data structure that can be deserialized and converted into an Endpoint.

Required Methods§

Source

fn to_endpoint(&self) -> Result<Box<dyn Endpoint + Send>, Error>

Convert this EndpointConfig into an Endpoint.

Implementors§