s3/bucket/
credentials.rs

1use crate::{bucket::Bucket, error::S3Error};
2
3impl Bucket {
4    pub fn credentials_refresh(&self) -> Result<(), S3Error> {
5        Ok(self
6            .credentials
7            .try_write()
8            .map_err(|_| S3Error::WLCredentials)?
9            .refresh()?)
10    }
11}