pub struct DiagnosticAggregationScratch { /* private fields */ }Expand description
Caller-owned scratch for repeated device diagnostic aggregation planning.
Implementations§
Source§impl DiagnosticAggregationScratch
impl DiagnosticAggregationScratch
Sourcepub fn try_with_capacity(
shard_count: usize,
) -> Result<Self, DiagnosticAggregationError>
pub fn try_with_capacity( shard_count: usize, ) -> Result<Self, DiagnosticAggregationError>
Allocate reusable diagnostic aggregation scratch for a known shard count.
§Errors
Returns DiagnosticAggregationError when scratch storage cannot be reserved.
Sourcepub fn try_reserve_shards(
&mut self,
shard_count: usize,
) -> Result<(), DiagnosticAggregationError>
pub fn try_reserve_shards( &mut self, shard_count: usize, ) -> Result<(), DiagnosticAggregationError>
Reserve reusable diagnostic aggregation scratch for a known shard count.
§Errors
Returns DiagnosticAggregationError when scratch storage cannot be reserved.
Sourcepub fn id_capacity(&self) -> usize
pub fn id_capacity(&self) -> usize
Retained duplicate-detection capacity.
Sourcepub fn ordered_index_capacity(&self) -> usize
pub fn ordered_index_capacity(&self) -> usize
Retained shard-ordering capacity.
Trait Implementations§
Source§impl Debug for DiagnosticAggregationScratch
impl Debug for DiagnosticAggregationScratch
Source§impl Default for DiagnosticAggregationScratch
impl Default for DiagnosticAggregationScratch
Source§fn default() -> DiagnosticAggregationScratch
fn default() -> DiagnosticAggregationScratch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DiagnosticAggregationScratch
impl RefUnwindSafe for DiagnosticAggregationScratch
impl Send for DiagnosticAggregationScratch
impl Sync for DiagnosticAggregationScratch
impl Unpin for DiagnosticAggregationScratch
impl UnsafeUnpin for DiagnosticAggregationScratch
impl UnwindSafe for DiagnosticAggregationScratch
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