Struct relay_metrics::FlushBuckets
source · pub struct FlushBuckets {
pub buckets: HashMap<ProjectKey, Vec<Bucket>>,
}
Expand description
A message containing a vector of buckets to be flushed.
Handlers must respond to this message with a Result
:
- If flushing has succeeded or the buckets should be dropped for any reason, respond with
Ok
. - If flushing fails and should be retried at a later time, respond with
Err
containing the failed buckets. They will be merged back into the aggregator and flushed at a later time.
Fields§
§buckets: HashMap<ProjectKey, Vec<Bucket>>
The buckets to be flushed.
Trait Implementations§
source§impl Clone for FlushBuckets
impl Clone for FlushBuckets
source§fn clone(&self) -> FlushBuckets
fn clone(&self) -> FlushBuckets
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for FlushBuckets
impl Send for FlushBuckets
impl Sync for FlushBuckets
impl Unpin for FlushBuckets
impl UnwindSafe for FlushBuckets
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