pub struct Outcomes {
pub emit_outcomes: EmitOutcomes,
pub emit_client_outcomes: bool,
pub batch_size: usize,
pub batch_interval: u64,
pub source: Option<String>,
pub aggregator: OutcomeAggregatorConfig,
}
Expand description
Outcome generation specific configuration values.
Fields§
§emit_outcomes: EmitOutcomes
Controls whether outcomes will be emitted when processing is disabled. Processing relays always emit outcomes (for backwards compatibility). Can take the following values: false, “as_client_reports”, true
emit_client_outcomes: bool
Controls wheather client reported outcomes should be emitted.
batch_size: usize
The maximum number of outcomes that are batched before being sent via http to the upstream (only applies to non processing relays).
batch_interval: u64
The maximum time interval (in milliseconds) that an outcome may be batched via http to the upstream (only applies to non processing relays).
source: Option<String>
Defines the source string registered in the outcomes originating from this Relay (typically something like the region or the layer).
aggregator: OutcomeAggregatorConfig
Configures the outcome aggregator.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Outcomes
impl<'de> Deserialize<'de> for Outcomes
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Outcomes
impl RefUnwindSafe for Outcomes
impl Send for Outcomes
impl Sync for Outcomes
impl Unpin for Outcomes
impl UnwindSafe for Outcomes
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more