pub struct Outcomes {
pub emit_outcomes: EmitOutcomes,
pub batch_size: usize,
pub batch_interval: u64,
pub source: Option<String>,
}Expand description
Outcome generation specific configuration values.
Fields§
§emit_outcomes: EmitOutcomesControls 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
batch_size: usizeThe maximum number of outcomes that are batched before being sent via http to the upstream (only applies to non processing relays).
batch_interval: u64The 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).
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Outcomes
impl RefUnwindSafe for Outcomes
impl Send for Outcomes
impl Sync for Outcomes
impl Unpin for Outcomes
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more
§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>
Converts
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>
Converts
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