pub trait PoolsExt {
// Required methods
fn add_service(&self, service: &Service) -> bool;
fn remove_service(&self, service: &Service) -> bool;
}Required Methods§
Sourcefn add_service(&self, service: &Service) -> bool
fn add_service(&self, service: &Service) -> bool
添加一个服务实例
Sourcefn remove_service(&self, service: &Service) -> bool
fn remove_service(&self, service: &Service) -> bool
移除一个服务实例
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".