pub trait ServiceDiscovery {
// Required methods
fn name(&self) -> &'static str;
fn fqdn(region: Region) -> String;
fn endpoint(region: Region) -> Result<Url, RegionError>;
}Expand description
Simple service discover trait that defines the name of the service and the endpoint for a given region.
Required Methods§
fn name(&self) -> &'static str
fn fqdn(region: Region) -> String
fn endpoint(region: Region) -> Result<Url, RegionError>
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.