pub(crate) fn new(
        key_uri: &str,
        kms: rusoto_kms::KmsClient,
    ) -> Result<AwsAead, tink::TinkError> {
        Ok(AwsAead {
            key_uri: key_uri.to_string(),
            kms,
            runtime: Rc::new(RefCell::new(
                tokio::runtime::Builder::new()
                    .basic_scheduler()
                    .enable_all()
                    .build()
                    .map_err(|e| wrap_err("failed to build tokio runtime", e))?,
            )),
        })
    }
/// Return a new AWS KMS service.
/// `key_uri` must have the following format: `arn:<partition>:kms:<region>:[:path]`.
/// See http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html.
Return a new AWS KMS service.
Return a new AWS KMS service .
pub(crate) fn new(
        key_uri: &str,
        kms: rusoto_kms::KmsClient,
    ) -> Result<AwsAead, tink::TinkError> {
        Ok(AwsAead {
            key_uri: key_uri.to_string(),
            kms,
            runtime: Rc::new(RefCell::new(
                tokio::runtime::Builder::new()
                    .basic_scheduler()
                    .enable_all()
                    .build()
                    .map_err(|e| wrap_err("failed to build tokio runtime", e))?,
            )),
        })
    }
pub ( crate ) fn new ( key_uri : & str , kms : rusoto_kms :: KmsClient , ) -> Result < AwsAead , tink :: TinkError > { Ok ( AwsAead { key_uri : key_uri . to_string ( ) , kms , runtime : Rc :: new ( RefCell :: new ( tokio :: runtime :: Builder :: new ( ) . basic_scheduler ( ) . enable_all ( ) . build ( ) . map_err ( | e | wrap_err ( " " , e ) ) ? , ) ) , } ) }
Return a new AWS KMS service.
Return a new AWS KMS service .
key_uri
&str
kms
rusoto_kms::KmsClient