pub trait CredentialProvider: DynClone + Debug + Sync + Send {
fn get(&self, opts: GetOptions) -> Result<GotCredential, Error>;
fn async_get(
&self,
opts: GetOptions
) -> Pin<Box<dyn Future<Output = Result<GotCredential, Error>> + Send, Global>> { ... }
}
Expand description
认证信息获取接口
Required methods
返回七牛认证信息
该方法的异步版本为 Self::async_get
。