pub struct AutoRedeemingStrategyConfig {
pub redeem_all_on_close: bool,
pub minimum_redeem_ticket_value: HoprBalance,
pub redeem_on_winning: bool,
}Expand description
Configuration object for the AutoRedeemingStrategy
Fields§
§redeem_all_on_close: boolIf set to true, will redeem all tickets in the channel (which are over the
minimum_redeem_ticket_value threshold) once it transitions to PendingToClose.
Default is true.
minimum_redeem_ticket_value: HoprBalanceThe strategy will only redeem an acknowledged winning ticket if it has at least this value of HOPR. If 0 is given, the strategy will redeem tickets regardless of their value.
Default is 1 wxHOPR.
redeem_on_winning: boolIf set, the strategy will redeem each incoming winning ticket. Otherwise, it will try to redeem tickets in all channels periodically.
Set this to true when winning tickets are not happening too often (e.g., when winning probability
is below 1%).
Set this to false when winning tickets are happening very often (e.g., when winning probability
is above 1%).
Default is true
Trait Implementations§
Source§impl Clone for AutoRedeemingStrategyConfig
impl Clone for AutoRedeemingStrategyConfig
Source§fn clone(&self) -> AutoRedeemingStrategyConfig
fn clone(&self) -> AutoRedeemingStrategyConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AutoRedeemingStrategyConfig
impl Debug for AutoRedeemingStrategyConfig
Source§impl<'de> Deserialize<'de> for AutoRedeemingStrategyConfig
impl<'de> Deserialize<'de> for AutoRedeemingStrategyConfig
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 Validate for AutoRedeemingStrategyConfig
impl Validate for AutoRedeemingStrategyConfig
Source§impl<'v_a> ValidateArgs<'v_a> for AutoRedeemingStrategyConfig
impl<'v_a> ValidateArgs<'v_a> for AutoRedeemingStrategyConfig
impl Copy for AutoRedeemingStrategyConfig
impl Eq for AutoRedeemingStrategyConfig
impl StructuralPartialEq for AutoRedeemingStrategyConfig
Auto Trait Implementations§
impl Freeze for AutoRedeemingStrategyConfig
impl RefUnwindSafe for AutoRedeemingStrategyConfig
impl Send for AutoRedeemingStrategyConfig
impl Sync for AutoRedeemingStrategyConfig
impl Unpin for AutoRedeemingStrategyConfig
impl UnwindSafe for AutoRedeemingStrategyConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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