pub struct HoprUnacknowledgedTicketProcessorConfig {
pub unack_ticket_timeout: Duration,
pub max_unack_tickets: usize,
pub use_batch_verification: bool,
}Expand description
Configuration for the HoprUnacknowledgedTicketProcessor.
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.
use_batch_verification: boolIndicates whether to use batch verification algorithm for acknowledgements.
This has a positive performance impact on higher workloads.
Default is true.
Trait Implementations§
Source§impl Clone for HoprUnacknowledgedTicketProcessorConfig
impl Clone for HoprUnacknowledgedTicketProcessorConfig
Source§fn clone(&self) -> HoprUnacknowledgedTicketProcessorConfig
fn clone(&self) -> HoprUnacknowledgedTicketProcessorConfig
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 PartialEq for HoprUnacknowledgedTicketProcessorConfig
impl PartialEq for HoprUnacknowledgedTicketProcessorConfig
Source§fn eq(&self, other: &HoprUnacknowledgedTicketProcessorConfig) -> bool
fn eq(&self, other: &HoprUnacknowledgedTicketProcessorConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Validate for HoprUnacknowledgedTicketProcessorConfig
impl Validate for HoprUnacknowledgedTicketProcessorConfig
Source§impl<'v_a> ValidateArgs<'v_a> for HoprUnacknowledgedTicketProcessorConfig
impl<'v_a> ValidateArgs<'v_a> for HoprUnacknowledgedTicketProcessorConfig
impl Copy for HoprUnacknowledgedTicketProcessorConfig
impl StructuralPartialEq for HoprUnacknowledgedTicketProcessorConfig
Auto Trait Implementations§
impl Freeze for HoprUnacknowledgedTicketProcessorConfig
impl RefUnwindSafe for HoprUnacknowledgedTicketProcessorConfig
impl Send for HoprUnacknowledgedTicketProcessorConfig
impl Sync for HoprUnacknowledgedTicketProcessorConfig
impl Unpin for HoprUnacknowledgedTicketProcessorConfig
impl UnwindSafe for HoprUnacknowledgedTicketProcessorConfig
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