pub trait RegionsProvider: DynClone + Debug + Sync + Send {
    fn get(&self, opts: GetOptions) -> ApiResult<GotRegion>;

    fn get_all(&self, opts: GetOptions) -> ApiResult<GotRegions> { ... }
    fn async_get(&self, opts: GetOptions) -> BoxFuture<'_, ApiResult<GotRegion>> { ... }
    fn async_get_all(
        &self,
        opts: GetOptions
    ) -> BoxFuture<'_, ApiResult<GotRegions>> { ... } }
Expand description

区域信息获取接口

可以获取一个区域也可以获取多个区域

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

Required Methods

返回七牛区域信息

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

Provided Methods

返回多个七牛区域信息

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

Available on crate feature async only.

异步返回七牛区域信息

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