pub trait IpServiceTrait: Send + Sync {
// Required methods
async fn add_ip(&self, ip: IpAddr, reason: String, date: String);
fn is_ip_blocked(&self, ip: &IpAddr) -> impl Future<Output = bool> + Send;
}Required Methods§
async fn add_ip(&self, ip: IpAddr, reason: String, date: String)
fn is_ip_blocked(&self, ip: &IpAddr) -> impl Future<Output = bool> + 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.