Struct mixnet::reply_manager::Config
source · pub struct Config {
pub log_target: &'static str,
pub capacity: usize,
pub max_posts: usize,
pub cooldown: Duration,
}
Expand description
Reply manager configuration.
Fields§
§log_target: &'static str
The target for log messages.
capacity: usize
Maximum number of requests to remember. When this limit is reached, old requests will be automatically discarded to make space for new ones.
max_posts: usize
Maximum number of copies of a reply message to post in response to a single request message. Note that the number of copies is also limited by the number of SURBs provided in the request message.
cooldown: Duration
After replying to a request, ignore repeats of the request for this length of time. This should ideally be set such that extra copies of a request message posted at the same time as the first received one get ignored, but retries posted after a timeout do not.
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