pub struct WireTapConfig {
pub max_concurrent: Option<usize>,
pub shutdown_grace: Duration,
}Expand description
Configuration for WireTapService.
Default concurrency bound is 20 (Camel-faithful flat-semaphore).
shutdown_grace defaults to 5 seconds.
Fields§
§max_concurrent: Option<usize>Maximum number of concurrent tap tasks. None means unlimited.
shutdown_grace: DurationGrace period for in-flight tap tasks to complete on shutdown. A value of zero means “skip drain, cancel immediately”.
Implementations§
Trait Implementations§
Source§impl Clone for WireTapConfig
impl Clone for WireTapConfig
Source§fn clone(&self) -> WireTapConfig
fn clone(&self) -> WireTapConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WireTapConfig
impl RefUnwindSafe for WireTapConfig
impl Send for WireTapConfig
impl Sync for WireTapConfig
impl Unpin for WireTapConfig
impl UnsafeUnpin for WireTapConfig
impl UnwindSafe for WireTapConfig
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