Skip to main content

PoolsExt

Trait PoolsExt 

Source
pub trait PoolsExt {
    // Required methods
    fn add_service(&self, service: &Service) -> bool;
    fn remove_service(&self, service: &Service) -> bool;
}

Required Methods§

Source

fn add_service(&self, service: &Service) -> bool

添加一个服务实例

Source

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".

Implementations on Foreign Types§

Source§

impl<P: Pool + Default> PoolsExt for Pools<P>

Source§

fn add_service(&self, service: &Service) -> bool

Source§

fn remove_service(&self, service: &Service) -> bool

Implementors§