pub trait EndpointsProvider: DynClone + Debug + Send + Sync {
fn get_endpoints(
&'e self,
options: GetOptions<'_>
) -> Result<Cow<'e, Endpoints>, Error>;
fn async_get_endpoints(
&'a self,
options: GetOptions<'a>
) -> Pin<Box<dyn Future<Output = Result<Cow<'a, Endpoints>, Error>> + Send + 'a, Global>> { ... }
}
Expand description
终端地址列表获取接口
同时提供阻塞获取接口和异步获取接口,异步获取接口则需要启用 async
功能
Required methods
fn get_endpoints(
&'e self,
options: GetOptions<'_>
) -> Result<Cow<'e, Endpoints>, Error>
fn get_endpoints(
&'e self,
options: GetOptions<'_>
) -> Result<Cow<'e, Endpoints>, Error>
获取终端地址列表
该方法的异步版本为 Self::async_get_endpoints
。
Provided methods
Implementations on Foreign Types
impl<T> EndpointsProvider for Box<T, Global> where
T: EndpointsProvider + ?Sized,
Box<T, Global>: DynClone,
Box<T, Global>: Debug,
Box<T, Global>: Send,
Box<T, Global>: Sync,
impl<T> EndpointsProvider for Box<T, Global> where
T: EndpointsProvider + ?Sized,
Box<T, Global>: DynClone,
Box<T, Global>: Debug,
Box<T, Global>: Send,
Box<T, Global>: Sync,
fn get_endpoints(
&'e self,
options: GetOptions<'_>
) -> Result<Cow<'e, Endpoints>, Error>
fn get_endpoints(
&'e self,
options: GetOptions<'_>
) -> Result<Cow<'e, Endpoints>, Error>
获取终端地址列表
该方法的异步版本为 Self::async_get_endpoints
。
impl<T> EndpointsProvider for Rc<T> where
T: EndpointsProvider + ?Sized,
Rc<T>: DynClone,
Rc<T>: Debug,
Rc<T>: Send,
Rc<T>: Sync,
impl<T> EndpointsProvider for Rc<T> where
T: EndpointsProvider + ?Sized,
Rc<T>: DynClone,
Rc<T>: Debug,
Rc<T>: Send,
Rc<T>: Sync,
fn get_endpoints(
&'e self,
options: GetOptions<'_>
) -> Result<Cow<'e, Endpoints>, Error>
fn get_endpoints(
&'e self,
options: GetOptions<'_>
) -> Result<Cow<'e, Endpoints>, Error>
获取终端地址列表
该方法的异步版本为 Self::async_get_endpoints
。
impl EndpointsProvider for Endpoints
impl EndpointsProvider for Endpoints
fn get_endpoints(
&'e self,
_services: GetOptions<'_>
) -> Result<Cow<'e, Endpoints>, Error>
impl<R> EndpointsProvider for RegionsProviderEndpoints<R> where
R: RegionsProvider + Clone,
impl<R> EndpointsProvider for RegionsProviderEndpoints<R> where
R: RegionsProvider + Clone,
impl EndpointsProvider for Endpoint
impl EndpointsProvider for Endpoint
fn get_endpoints(
&'e self,
_services: GetOptions<'_>
) -> Result<Cow<'e, Endpoints>, Error>
impl EndpointsProvider for BucketDomainsProvider
impl EndpointsProvider for BucketDomainsProvider
impl<'b, T> EndpointsProvider for &'b mut T where
T: 'b + EndpointsProvider + ?Sized,
&'b mut T: DynClone,
&'b mut T: Debug,
&'b mut T: Send,
&'b mut T: Sync,
impl<'b, T> EndpointsProvider for &'b mut T where
T: 'b + EndpointsProvider + ?Sized,
&'b mut T: DynClone,
&'b mut T: Debug,
&'b mut T: Send,
&'b mut T: Sync,
impl<'b, T> EndpointsProvider for &'b T where
T: 'b + EndpointsProvider + ?Sized,
&'b T: DynClone,
&'b T: Debug,
&'b T: Send,
&'b T: Sync,
impl<'b, T> EndpointsProvider for &'b T where
T: 'b + EndpointsProvider + ?Sized,
&'b T: DynClone,
&'b T: Debug,
&'b T: Send,
&'b T: Sync,
impl<T> EndpointsProvider for Arc<T> where
T: EndpointsProvider + ?Sized,
Arc<T>: DynClone,
Arc<T>: Debug,
Arc<T>: Send,
Arc<T>: Sync,
impl<T> EndpointsProvider for Arc<T> where
T: EndpointsProvider + ?Sized,
Arc<T>: DynClone,
Arc<T>: Debug,
Arc<T>: Send,
Arc<T>: Sync,
fn get_endpoints(
&'e self,
options: GetOptions<'_>
) -> Result<Cow<'e, Endpoints>, Error>
fn get_endpoints(
&'e self,
options: GetOptions<'_>
) -> Result<Cow<'e, Endpoints>, Error>
获取终端地址列表
该方法的异步版本为 Self::async_get_endpoints
。