Struct goodmetrics::pipeline::aggregating_sink::AggregatingSink
source · pub struct AggregatingSink { /* private fields */ }
Implementations§
source§impl AggregatingSink
impl AggregatingSink
pub fn new() -> Self
pub fn drain_into<DrainFunction, TReturn>(
&self,
timestamp: SystemTime,
duration: Duration,
drain_into: DrainFunction
) -> Option<TReturn>where
DrainFunction: FnOnce(SystemTime, Duration, Drain<'_, Name, DimensionedMeasurementsMap>) -> TReturn,
pub async fn drain_into_sender_forever<TMakeBatchFunction, TBatch>(
&self,
cadence: Duration,
sender: SyncSender<TBatch>,
make_batch: TMakeBatchFunction
)where
TMakeBatchFunction: FnMut(SystemTime, Duration, Drain<'_, Name, DimensionedMeasurementsMap>) -> TBatch + Copy,
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for AggregatingSink
impl Send for AggregatingSink
impl Sync for AggregatingSink
impl Unpin for AggregatingSink
impl UnwindSafe for AggregatingSink
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request