pub struct ShardHandler { /* private fields */ }
Expand description
Shard handler for managing shards
Implementations§
Source§impl ShardHandler
impl ShardHandler
pub fn new(client: RestClient) -> Self
Sourcepub async fn stats(&self, uid: &str) -> Result<ShardStats>
pub async fn stats(&self, uid: &str) -> Result<ShardStats>
Get shard statistics
Sourcepub async fn stats_metric(&self, uid: &str, metric: &str) -> Result<Value>
pub async fn stats_metric(&self, uid: &str, metric: &str) -> Result<Value>
Get shard statistics for a specific metric
Auto Trait Implementations§
impl Freeze for ShardHandler
impl !RefUnwindSafe for ShardHandler
impl Send for ShardHandler
impl Sync for ShardHandler
impl Unpin for ShardHandler
impl !UnwindSafe for ShardHandler
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