pub struct RateLimitReportingClient { /* private fields */ }Expand description
A storage client wrapper that reports healthy and rate-limited operations to autoscaling.
Implementations§
Source§impl RateLimitReportingClient
impl RateLimitReportingClient
Sourcepub fn new(
inner: Arc<dyn StorageClient>,
handle: ClientLoadSignalHandle,
) -> Arc<dyn StorageClient>
pub fn new( inner: Arc<dyn StorageClient>, handle: ClientLoadSignalHandle, ) -> Arc<dyn StorageClient>
Wraps inner with rate-limit reporting and returns it as a storage client.
Trait Implementations§
Source§impl StorageClient for RateLimitReportingClient
impl StorageClient for RateLimitReportingClient
Source§fn open_dataset<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = StorageResult<Arc<dyn Dataset>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn open_dataset<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = StorageResult<Arc<dyn Dataset>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Opens a dataset, using the default dataset when
name is None.Source§fn open_key_value_store<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = StorageResult<Arc<dyn KeyValueStore>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn open_key_value_store<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = StorageResult<Arc<dyn KeyValueStore>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Opens a key-value store, using the default store when
name is None.Source§fn open_request_queue<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = StorageResult<Arc<dyn RequestQueue>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn open_request_queue<'life0, 'life1, 'async_trait>(
&'life0 self,
name: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = StorageResult<Arc<dyn RequestQueue>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Opens a request queue, using the default queue when
name is None.Auto Trait Implementations§
impl !RefUnwindSafe for RateLimitReportingClient
impl !UnwindSafe for RateLimitReportingClient
impl Freeze for RateLimitReportingClient
impl Send for RateLimitReportingClient
impl Sync for RateLimitReportingClient
impl Unpin for RateLimitReportingClient
impl UnsafeUnpin for RateLimitReportingClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more