Struct mixnet::request_manager::Config
source · pub struct Config {
pub capacity: usize,
pub num_destinations: u32,
pub num_attempts_per_destination: u32,
pub num_posts_per_attempt: u32,
}
Expand description
Request manager configuration.
Fields§
§capacity: usize
Maximum number of requests that can be managed at once.
num_destinations: u32
Number of destinations to try sending a request to before giving up. Note that the destinations are chosen randomly with replacement; the same destination might be chosen multiple times.
num_attempts_per_destination: u32
Number of times to attempt a destination before moving on to the next. After each attempt, we conservatively estimate the round-trip time and wait at least this long before the next attempt. Must not be 0.
num_posts_per_attempt: u32
Number of copies of the message to post each time we send a request. Must not be 0.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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