pub trait DnsProvider: Send {
// Required methods
fn get_v4_record(
&self,
host: &str,
) -> impl Future<Output = Result<Option<Ipv4Addr>>> + Send;
fn create_v4_record(
&self,
host: &str,
ip: &Ipv4Addr,
) -> impl Future<Output = Result<()>> + Send;
fn update_v4_record(
&self,
host: &str,
ip: &Ipv4Addr,
) -> impl Future<Output = Result<()>> + Send;
fn delete_v4_record(
&self,
host: &str,
) -> impl Future<Output = Result<()>> + Send;
}Required Methods§
fn get_v4_record( &self, host: &str, ) -> impl Future<Output = Result<Option<Ipv4Addr>>> + Send
fn create_v4_record( &self, host: &str, ip: &Ipv4Addr, ) -> impl Future<Output = Result<()>> + Send
fn update_v4_record( &self, host: &str, ip: &Ipv4Addr, ) -> impl Future<Output = Result<()>> + Send
fn delete_v4_record( &self, host: &str, ) -> impl Future<Output = Result<()>> + Send
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.