pub struct MissionControlConfig {
pub half_life_seconds: u64,
pub hop_probability: f32,
pub weight: f32,
pub maximum_payment_results: u32,
pub minimum_failure_relax_interval: u64,
pub model: i32,
pub estimator_config: Option<EstimatorConfig>,
}Fields§
§half_life_seconds: u64Deprecated, use AprioriParameters. The amount of time mission control will take to restore a penalized node or channel back to 50% success probability, expressed in seconds. Setting this value to a higher value will penalize failures for longer, making mission control less likely to route through nodes and channels that we have previously recorded failures for.
hop_probability: f32Deprecated, use AprioriParameters. The probability of success mission control should assign to hop in a route where it has no other information available. Higher values will make mission control more willing to try hops that we have no information about, lower values will discourage trying these hops.
weight: f32Deprecated, use AprioriParameters. The importance that mission control should place on historical results, expressed as a value in [0;1]. Setting this value to 1 will ignore all historical payments and just use the hop probability to assess the probability of success for each hop. A zero value ignores hop probability completely and relies entirely on historical results, unless none are available.
maximum_payment_results: u32The maximum number of payment results that mission control will store.
minimum_failure_relax_interval: u64The minimum time that must have passed since the previously recorded failure before we raise the failure amount.
model: i32ProbabilityModel defines which probability estimator should be used in pathfinding. Note that the bimodal estimator is experimental.
estimator_config: Option<EstimatorConfig>EstimatorConfig is populated dependent on the estimator type.
Implementations§
Source§impl MissionControlConfig
impl MissionControlConfig
Sourcepub fn model(&self) -> ProbabilityModel
pub fn model(&self) -> ProbabilityModel
Returns the enum value of model, or the default if the field is set to an invalid enum value.
Sourcepub fn set_model(&mut self, value: ProbabilityModel)
pub fn set_model(&mut self, value: ProbabilityModel)
Sets model to the provided enum value.
Trait Implementations§
Source§impl Clone for MissionControlConfig
impl Clone for MissionControlConfig
Source§fn clone(&self) -> MissionControlConfig
fn clone(&self) -> MissionControlConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MissionControlConfig
impl Debug for MissionControlConfig
Source§impl Default for MissionControlConfig
impl Default for MissionControlConfig
Source§impl<'de> Deserialize<'de> for MissionControlConfig
impl<'de> Deserialize<'de> for MissionControlConfig
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>,
Source§impl Message for MissionControlConfig
impl Message for MissionControlConfig
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for MissionControlConfig
impl PartialEq for MissionControlConfig
Source§impl Serialize for MissionControlConfig
impl Serialize for MissionControlConfig
impl Copy for MissionControlConfig
impl StructuralPartialEq for MissionControlConfig
Auto Trait Implementations§
impl Freeze for MissionControlConfig
impl RefUnwindSafe for MissionControlConfig
impl Send for MissionControlConfig
impl Sync for MissionControlConfig
impl Unpin for MissionControlConfig
impl UnwindSafe for MissionControlConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
T in a tonic::RequestSource§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>
T in a tonic::Request