pub struct HoprTicketProcessorConfig {
pub unack_ticket_timeout: Duration,
pub max_unack_tickets: usize,
pub outgoing_index_cache_retention: Duration,
}Expand description
Configuration for the HOPR ticket processor within the packet pipeline.
Fields§
§unack_ticket_timeout: DurationTime after which an unacknowledged ticket is considered stale and is removed from the cache.
If the counterparty does not send an acknowledgement within this period, the ticket is lost forever.
Default is 30 seconds.
max_unack_tickets: usizeMaximum number of unacknowledged tickets that can be stored in the cache at any given time.
When more tickets are received, the oldest ones are discarded and lost forever.
Default is 10 000 000.
outgoing_index_cache_retention: DurationPeriod for which the outgoing ticket index is cached in memory for each channel.
Default is 10 seconds.
Trait Implementations§
Source§impl Clone for HoprTicketProcessorConfig
impl Clone for HoprTicketProcessorConfig
Source§fn clone(&self) -> HoprTicketProcessorConfig
fn clone(&self) -> HoprTicketProcessorConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HoprTicketProcessorConfig
impl Debug for HoprTicketProcessorConfig
Source§impl Default for HoprTicketProcessorConfig
impl Default for HoprTicketProcessorConfig
Source§impl<'de> Deserialize<'de> for HoprTicketProcessorConfig
impl<'de> Deserialize<'de> for HoprTicketProcessorConfig
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
Source§impl Validate for HoprTicketProcessorConfig
impl Validate for HoprTicketProcessorConfig
Source§impl<'v_a> ValidateArgs<'v_a> for HoprTicketProcessorConfig
impl<'v_a> ValidateArgs<'v_a> for HoprTicketProcessorConfig
impl Copy for HoprTicketProcessorConfig
impl StructuralPartialEq for HoprTicketProcessorConfig
Auto Trait Implementations§
impl Freeze for HoprTicketProcessorConfig
impl RefUnwindSafe for HoprTicketProcessorConfig
impl Send for HoprTicketProcessorConfig
impl Sync for HoprTicketProcessorConfig
impl Unpin for HoprTicketProcessorConfig
impl UnwindSafe for HoprTicketProcessorConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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