pub trait EndpointsProvider: DynClone + Debug + Send + Sync {
    fn get_endpoints<'e>(
        &'e self,
        options: GetOptions<'_>
    ) -> ApiResult<Cow<'e, Endpoints>>; fn async_get_endpoints<'a>(
        &'a self,
        options: GetOptions<'a>
    ) -> Pin<Box<dyn Future<Output = ApiResult<Cow<'a, Endpoints>>> + Send + 'a>> { ... } }
Expand description

终端地址列表获取接口

同时提供阻塞获取接口和异步获取接口,异步获取接口则需要启用 async 功能

Required Methods

获取终端地址列表

该方法的异步版本为 Self::async_get_endpoints

Provided Methods

Available on crate feature async only.

异步获取终端地址列表

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Implementations on Foreign Types

Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.
Available on crate feature async only.

Implementors